All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.global.api.entities.enums.StoredCredentialSequence Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.entities.enums;

import java.util.HashMap;

public enum StoredCredentialSequence implements IMappedConstant {
    First(new HashMap() {{
        put(Target.Realex, "first");
        put(Target.GP_API, "FIRST");
    }}),
    Subsequent(new HashMap() {{
        put(Target.Realex, "subsequent");
        put(Target.GP_API, "SUBSEQUENT");
    }}),
    Last(new HashMap() {{
        put(Target.GP_API, "LAST");
    }});

    HashMap value;
    StoredCredentialSequence(HashMap value){
        this.value = value;
    }
    public byte[] getBytes(Target target) {
        if(value.containsKey(target)) {
            return this.value.get(target).getBytes();
        }
        return null;
    }
    public String getValue(Target target) {
        if(value.containsKey(target)) {
            return this.value.get(target);
        }
        return null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy