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

org.apereo.cas.ws.idp.WSFederationConstants Maven / Gradle / Ivy

There is a newer version: 7.2.0-RC4
Show newest version
package org.apereo.cas.ws.idp;

/**
 * This is {@link WSFederationConstants}.
 *
 * @author Misagh Moayyed
 * @since 5.1.0
 */
public interface WSFederationConstants {
    /**
     * The default realm for the idp/sts.
     */
    String REALM_DEFAULT_URI = "urn:org:apereo:cas:ws:idp:realm-CAS";
    /**
     * The name of the WSDL service.
     */
    String SECURITY_TOKEN_SERVICE = "SecurityTokenService";
    /**
     * The endpoint of the WSDL service.
     */
    String SECURITY_TOKEN_SERVICE_ENDPOINT = "TransportUT_Port";
    /**
     * SAML2 token type.
     */
    String WSS_SAML2_TOKEN_TYPE = "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0";
    /**
     * SAML1 token type.
     */
    String WSS_SAML1_TOKEN_TYPE = "http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1";

    /**
     * WS-trust namespace.
     */
    String WST_NS_05_12 = "http://docs.oasis-open.org/ws-sx/ws-trust/200512";
    /**
     * Public key namespace.
     */
    String HTTP_DOCS_OASIS_OPEN_ORG_WS_SX_WS_TRUST_200512_PUBLICKEY = "http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey";
    /**
     * Addressing namespace.
     */
    String HTTP_WWW_W3_ORG_2005_08_ADDRESSING = "http://www.w3.org/2005/08/addressing";
    /**
     * The bearer token type.
     */
    String HTTP_DOCS_OASIS_OPEN_ORG_WS_SX_WS_TRUST_200512_BEARER = "http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer";
    /**
     * The ws-trust namespace.
     */
    String HTTP_DOCS_OASIS_OPEN_ORG_WS_SX_WS_TRUST_200512 = "http://docs.oasis-open.org/ws-sx/ws-trust/200512/";
    /**
     * The trust namespace.
     */
    String HTTP_SCHEMAS_XMLSOAP_ORG_WS_2005_02_TRUST = "http://schemas.xmlsoap.org/ws/2005/02/trust";
    /**
     * The identity namespace.
     */
    String HTTP_SCHEMAS_XMLSOAP_ORG_WS_2005_05_IDENTITY = "http://schemas.xmlsoap.org/ws/2005/05/identity";
    /**
     * The CAS namespace.
     */
    String HTTP_SCHEMAS_APEREO_CAS = "http://www.yale.edu/tp/cas/";

    /**
     * Realm.
     */
    String WTREALM = "wtrealm";
    /**
     * The constant WREPLY.
     */
    String WREPLY = "wreply";
    /**
     * The constant WREQ.
     */
    String WREQ = "wreq";
    /**
     * The constant WCTX.
     */
    String WCTX = "wctx";
    /**
     * The constant WREFRESH.
     */
    String WREFRESH = "wfresh";
    /**
     * The constant WHR.
     */
    String WHR = "whr";
    /**
     * The constant WRESULT.
     */
    String WRESULT = "wresult";
    /**
     * The constant RELAY_STATE.
     */
    String RELAY_STATE = "RelayState";
    /**
     * The constant SAML_RESPONSE.
     */
    String SAML_RESPONSE = "SAMLResponse";
    /**
     * The constant STATE.
     */
    String STATE = "state";
    /**
     * The constant CODE.
     */
    String CODE = "code";
    /**
     * The constant WA.
     */
    String WA = "wa";
    /**
     * The constant WAUTH.
     */
    String WAUTH = "wauth";

    /**
     * Base endpoint.
     */
    String BASE_ENDPOINT_IDP = "/ws/idp";

    /**
     * Endpoint where authn requests may be submitted.
     */
    String ENDPOINT_FEDERATION_REQUEST = BASE_ENDPOINT_IDP + "/federation";

    /**
     * Internal callback endpoint that issues tokens.
     */
    String ENDPOINT_FEDERATION_REQUEST_CALLBACK = BASE_ENDPOINT_IDP + "/federationcallback";

    /**
     * The STS parent endpoint.
     */
    String BASE_ENDPOINT_STS = "/ws/sts/";

    /**
     * The location of WSDL service.
     */
    String ENDPOINT_STS_REALM_WSDL = BASE_ENDPOINT_STS + "%s/STSServiceTransportUT?wsdl";

    /**
     * The constant WSIGNOUT10.
     */
    String WSIGNOUT10 = "wsignout1.0";

    /**
     * The constant WSIGNOUT_CLEANUP10.
     */
    String WSIGNOUT_CLEANUP10 = "wsignoutcleanup1.0";

    /**
     * The constant WSIGNIN10.
     */
    String WSIGNIN10 = "wsignin1.0";

    /**
     * Metadata endpoint.
     */
    String ENDPOINT_FEDERATION_METADATA = BASE_ENDPOINT_IDP + "/metadata";

    /**
     * Gets claim in cas namespace.
     *
     * @param claim the claim
     * @return the claim in cas namespace
     */
    static String getClaimInCasNamespace(final String claim) {
        return String.format("%s%s", HTTP_SCHEMAS_APEREO_CAS, claim);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy