WSFederationConstants.java revision a4544a5a0e622ef69e38641f87ab1b5685e05911
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: WSFederationConstants.java,v 1.13 2009/12/14 23:42:48 mallas Exp $
*
* Portions copyright 2016 ForgeRock AS.
*/
/**
* <code>WSFederationConstants</code> defines various constants for the
* WS-Federation implementation
*/
public final class WSFederationConstants {
/**
* WS-Federation data store provider name.
*/
/**
* WS-Federation 'sign-in' action.
*/
/**
* WS-Federation 'sign-out' action.
*/
/**
* WS-Federation 'sign-out cleanup' action. This is handled identically
* to <code>WSIGNOUT10</code>, following the WS-Federation 1.1
* specification.
*/
/**
* XML tag name for <code><RequestedSecurityToken%gt;</code>.
*/
/**
* XML tag name for <code><RequestSecurityTokenResponse%gt;</code>.
*/
/**
* XML tag name for <code><AppliesTo%gt;</code>.
*/
/**
* XML tag name for <code><Address%gt;</code>.
*/
/**
* SAML 1.1 URN.
*/
public static final String URN_OASIS_NAMES_TC_SAML_11 =
"urn:oasis:names:tc:SAML:1.1";
/**
* Claim URI.
*/
public static final String CLAIMS_URI =
/**
* Group claim URI.
*/
public static final String CLAIMS_GROUP_URI =
/**
* WS-Addressing URI.
*/
public static final String WS_ADDRESSING_URI =
/**
* Display name for Group claim.
*/
public static final String CLAIMS_GROUP_DISPLAY_NAME =
"Group";
/**
* Configuration attribute for account realm selection mechanism.
*/
public static final String ACCOUNT_REALM_SELECTION =
"AccountRealmSelection";
/**
* Configuration attribute for account realm cookie name.
*/
public static final String ACCOUNT_REALM_COOKIE_NAME =
"AccountRealmCookieName";
/**
* Configuration attribute for home realm discovery URL.
*/
public static final String HOME_REALM_DISCOVERY_SERVICE =
"HomeRealmDiscoveryService";
/**
* Configuration attribute - does the service provider require
* a signature on the assertion? Default is true.
*/
/**
* Configuration attribute for provider display name.
*/
public static final String DISPLAY_NAME =
"displayName";
/**
* Configuration attribute for default UPN domain.
*/
public static final String UPN_DOMAIN =
"upnDomain";
/**
* Default value for account realm cookie name
*/
public static final String ACCOUNT_REALM_COOKIE_NAME_DEFAULT =
"amWSFederationAccountRealm";
/**
* User agent HTTP header name
*/
/**
* Cookie HTTP header name
*/
/**
* Default mechanism for carrying account realm
*/
/**
* NameID info attribute.
*/
/**
* NameID info key attribute.
*/
/**
* Session property name for list of service provider to which this identity
* provider has sent a token
*/
/**
* Session property name for identity provider from which this service
* provider has received a token
*/
/**
* Attribute name for communicating form action URL from servlet to JSP
*/
public static final String POST_ACTION =
"com.sun.identity.wsfederation.post.action";
/**
* Attribute name for communicating WS-Federation wa parameter from servlet
* to JSP
*/
"com.sun.identity.wsfederation.post.wa";
/**
* Attribute name for communicating WS-Federation wctx parameter from
* servlet to JSP
*/
"com.sun.identity.wsfederation.post.wctx";
/**
* Attribute name for communicating WS-Federation wresult parameter from
* servlet to JSP
*/
public static final String POST_WRESULT =
"com.sun.identity.wsfederation.post.wresult";
/**
* Attribute name for communicating local provider display name from
* servlet to JSP
*/
public static final String LOGOUT_DISPLAY_NAME =
"com.sun.identity.wsfederation.logout.displayname";
/**
* Attribute name for communicating WS-Federation wreply parameter from
* servlet to JSP
*/
public static final String LOGOUT_WREPLY =
"com.sun.identity.wsfederation.logout.wreply";
/**
* Attribute name for communicating list of providers from
* servlet to JSP
*/
public static final String LOGOUT_PROVIDER_LIST =
"com.sun.identity.wsfederation.logout.providerlist";
/**
* Debug log name.
*/
/**
* Resource bundle name.
*/
/**
* Constant used to identify meta alias in URL.
*/
/**
* Entity ID to use if WS-Federation omits it.
*/
public static final String DEFAULT_FEDERATION_ID =
"sunFMWSFederationDefaultFederationID";
/**
* WS-Federation HTTP parameter for 'action'.
*/
/**
* WS-Federation HTTP parameter for 'result'.
*/
/**
* WS-Federation HTTP parameter for 'home realm'.
*/
/**
* WS-Federation HTTP parameter for 'requesting realm'.
*/
/**
* WS-Federation HTTP parameter for 'destination url'.
*/
/**
* WS-Federation HTTP parameter for 'current time'.
*/
/**
* WS-Federation HTTP parameter for 'context value'.
*/
/**
* HTTP request parameter for OpenAM realm
*/
/**
* HTTP request parameter for ws-federation entity id
*/
/**
* Claim type URIs, as defined in 'WS-Federation: Passive Requestor
* Interoperability Profile' document
*/
public static final String[] NAMED_CLAIM_TYPES = {
"urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress",
/**
* Claim type Displey names
*/
public static final String[] NAMED_CLAIM_DISPLAY_NAMES = {
"UPN",
"Email Address",
"Common Name" };
/**
* Index into NAMED_CLAIM_TYPES and NAMED_CLAIM_DISPLAY_NAMES arrays for UPN
*/
public static final int NAMED_CLAIM_UPN = 0;
/**
* Index into NAMED_CLAIM_TYPES and NAMED_CLAIM_DISPLAY_NAMES arrays for
* Email Address
*/
public static final int NAMED_CLAIM_EMAILADDRESS = 1;
/**
* Index into NAMED_CLAIM_TYPES and NAMED_CLAIM_DISPLAY_NAMES arrays for
* Common Name
*/
public static final int NAMED_CLAIM_COMMONNAME = 2;
/**
* Configuration attribute for NameID attribute.
*/
/**
* Configuration attribute for NameID format.
*/
/**
* Configuration attribute for Trim domain.
*/
/**
* Configuration attribute for Domain attribute.
*/
/**
* The default attribute for short user name
*/
/**
* The URL prefix for WS-Fed metadata requests
*/
public static final String METADATA_URL_PREFIX =
"/FederationMetadata/2006-12";
/**
* The URL suffix for WS-Fed metadata requests
*/
/**
* WS-Policy URI.
*/
public static final String WS_POLICY_URI =
/**
* List of valid wreply Urls
*/
}