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

com.stormpath.sdk.impl.saml.DefaultAuthnVerificationRequest Maven / Gradle / Ivy

Go to download

The Stormpath Java SDK core implemenation .jar is used at runtime to support API invocations. This implementation jar should be a runtime dependency only and should NOT be depended on at compile time by your code. The implementations within this jar can change at any time without warning - use it with runtime scope only.

There is a newer version: 2.0.4-okta
Show newest version
package com.stormpath.sdk.impl.saml;

import com.stormpath.sdk.impl.ds.InternalDataStore;
import com.stormpath.sdk.impl.resource.AbstractResource;
import com.stormpath.sdk.impl.resource.Property;
import com.stormpath.sdk.impl.resource.StringProperty;
import com.stormpath.sdk.saml.AuthnVerification;
import com.stormpath.sdk.saml.AuthnVerificationRequest;

import java.util.Map;

public class DefaultAuthnVerificationRequest extends AbstractResource implements AuthnVerificationRequest {
    static final StringProperty SAML_REQUEST = new StringProperty("samlRequest");
    static final StringProperty RELAY_STATE = new StringProperty("relayState");
    static final StringProperty SIG_ALG = new StringProperty("sigAlg");
    static final StringProperty SIGNATURE = new StringProperty("signature");
    static final StringProperty QUERY_STRING = new StringProperty("queryString");

    static final Map PROPERTY_DESCRIPTORS;

    static {
        PROPERTY_DESCRIPTORS = createPropertyDescriptorMap(new Property[] { SAML_REQUEST, SIG_ALG, SIGNATURE, QUERY_STRING });
    }

    public DefaultAuthnVerificationRequest(InternalDataStore dataStore) {
        super(dataStore);
    }

    public DefaultAuthnVerificationRequest(InternalDataStore dataStore, Map properties) {
        super(dataStore, properties);
    }

    @Override
    public Map getPropertyDescriptors() {
        return PROPERTY_DESCRIPTORS;
    }

    @Override
    public String getSamlRequest() {
        return getString(SAML_REQUEST);
    }

    @Override
    public AuthnVerificationRequest setSamlRequest(String samlRequest) {
        setProperty(SAML_REQUEST, samlRequest);
        return this;
    }

    @Override
    public String getRelayState() {
        return getString(RELAY_STATE);
    }

    @Override
    public AuthnVerificationRequest setRelayState(String relayState) {
        setProperty(RELAY_STATE, relayState);
        return this;
    }

    @Override
    public String getSigAlg() {
        return getString(SIG_ALG);
    }

    @Override
    public AuthnVerificationRequest setSigAlg(String sigAlg) {
        setProperty(SIG_ALG, sigAlg);
        return this;
    }

    @Override
    public String getSignature() {
        return getString(SIGNATURE);
    }

    @Override
    public AuthnVerificationRequest setSignature(String signature) {
        setProperty(SIGNATURE, signature);
        return this;
    }

    @Override
    public String getQueryString() {
        return getString(QUERY_STRING);
    }

    @Override
    public AuthnVerificationRequest setQueryString(String queryString) {
        setProperty(QUERY_STRING, queryString);
        return this;
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy