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

com.lacunasoftware.restpkicore.CompleteAuthenticationOptions Maven / Gradle / Ivy

There is a newer version: 1.1.4
Show newest version
package com.lacunasoftware.restpkicore;

public class CompleteAuthenticationOptions extends RequestOptions {

    private String state;
    private byte[] certificate;
    private byte[] signature;

    public CompleteAuthenticationOptions() {
        super();
    }

    public String getState() {
        return state;
    }

    public void setState(String value) {
        state = value;
    }

    public byte[] getCertificate() {
        return certificate;
    }

    public void setCertificate(byte[] value) {
        certificate = value;
    }

    public void setCertificateFromBase64(String base64) {
        certificate = Util.decodeBase64(base64);
    }

    public byte[] getSignature() {
        return signature;
    }

    public void setSignature(byte[] value) {
        signature = value;
    }

    public void setSignatureFromBase64(String base64) {
        signature = Util.decodeBase64(base64);
    } 

    CompleteAuthenticationRequest getRequest() {
        CompleteAuthenticationRequest request = new CompleteAuthenticationRequest();
        request.setState(state);
        request.setCertificate(certificate);
        request.setSignature(signature);
        return request;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy