public class CSSUtils
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected static java.lang.String |
SAML_ATTRIBUTE_ONLY |
Deprecated.
|
protected static java.lang.String |
SAML_ATTRIBUTE_PRINCIPALS |
Deprecated.
|
protected static java.lang.String |
SAML_ATTRIBUTES |
Deprecated.
|
protected static java.lang.String |
SAML2_ATTRIBUTES |
Deprecated.
|
Modifier and Type | Method | Description |
---|---|---|
static javax.security.auth.Subject |
getCurrentAuthenticatedSubject() |
Deprecated.
This will return the current authenticated subject for getting the SAML Attributes
|
protected static java.lang.String |
getEndpointPath(boolean isSaml2,
java.lang.String url) |
Deprecated.
|
protected static javax.xml.parsers.DocumentBuilder |
getParser() |
Deprecated.
|
static java.lang.Object[] |
getSAMLAssertionFromCredMapper(SecurityTokenContextHandler samlCtxHandler,
java.lang.String assertionType) |
Deprecated.
This will get the crednetial object array of Element assertions from CM.
|
static java.lang.Object |
getSAMLCredential(boolean isSAML2,
java.lang.String tokenType,
SecurityTokenContextHandler samlCtxHandler,
java.lang.Object keyInfoCredential) |
Deprecated.
Get the saml credential from CredentialManager
|
static boolean |
isHolderOfKey(boolean isSAML2,
SecurityTokenContextHandler samlCtxHandler) |
Deprecated.
|
static boolean |
isHolderOfKey(java.lang.String subjConfirmation) |
Deprecated.
|
protected static java.lang.String |
mapSAML2ConfMethod(java.lang.String method) |
Deprecated.
|
protected static java.lang.String |
mapSAMLConfMethod(java.lang.String method) |
Deprecated.
|
protected static void |
returnParser(javax.xml.parsers.DocumentBuilder builder) |
Deprecated.
|
static void |
setupSAMLAttributesContextElements(boolean isSAML2,
SecurityTokenContextHandler samlCtxHandler,
boolean attributesOnly,
SAMLAttributeStatementData samlAttributes) |
Deprecated.
Set up contexthandler properties for SAML Attributes
|
static void |
setupSAMLContextElements(boolean isSAML2,
SecurityTokenContextHandler samlCtxHandler,
ContextHandler ctxHandler) |
Deprecated.
Set up contexthandler properties required by SAMLCredMapper
|
protected static final java.lang.String SAML_ATTRIBUTES
protected static final java.lang.String SAML2_ATTRIBUTES
protected static final java.lang.String SAML_ATTRIBUTE_ONLY
protected static final java.lang.String SAML_ATTRIBUTE_PRINCIPALS
public static void setupSAMLContextElements(boolean isSAML2, SecurityTokenContextHandler samlCtxHandler, ContextHandler ctxHandler)
isSAML2
- true if processing for a SAML 2.0 assertionsamlCtxHandler
- ctxHandler
- public static void setupSAMLAttributesContextElements(boolean isSAML2, SecurityTokenContextHandler samlCtxHandler, boolean attributesOnly, SAMLAttributeStatementData samlAttributes)
isSAML2
- true if processing for a SAML 2.0 assertionsamlCtxHandler
- Context Handler to be passed to CSSattributesOnly
- true if this is a SAML Attributes only requestsamlAttributes
- SAMLAttributeStatementDatapublic static java.lang.Object getSAMLCredential(boolean isSAML2, java.lang.String tokenType, SecurityTokenContextHandler samlCtxHandler, java.lang.Object keyInfoCredential) throws WSSecurityException
isSAML2
- true if requesting a SAML 2.0 assertiontokenType
- tokenType of requested assertionsamlCtxHandler
- the SecurityTokenContextHandler contains ClaimskeyInfoCredential
- WSSecurityException
public static boolean isHolderOfKey(boolean isSAML2, SecurityTokenContextHandler samlCtxHandler)
public static boolean isHolderOfKey(java.lang.String subjConfirmation)
public static javax.security.auth.Subject getCurrentAuthenticatedSubject()
public static java.lang.Object[] getSAMLAssertionFromCredMapper(SecurityTokenContextHandler samlCtxHandler, java.lang.String assertionType)
samlCtxHandler
- The KeyInfo node must be insert into the
SecurityTokenContextHandler before the call.assertionType
- Assert type to getprotected static javax.xml.parsers.DocumentBuilder getParser()
protected static void returnParser(javax.xml.parsers.DocumentBuilder builder)
protected static java.lang.String getEndpointPath(boolean isSaml2, java.lang.String url)
protected static java.lang.String mapSAML2ConfMethod(java.lang.String method)
protected static java.lang.String mapSAMLConfMethod(java.lang.String method)