|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.wsee.security.saml.CSSUtils
public class CSSUtils
Utility for saml User: jlee Date: Sep 30, 2004 Time: 1:12:56 PM
Field Summary | |
---|---|
protected static String |
SAML_ATTRIBUTE_ONLY
|
protected static String |
SAML_ATTRIBUTES
|
protected static String |
SAML2_ATTRIBUTES
|
Constructor Summary | |
---|---|
CSSUtils()
|
Method Summary | |
---|---|
static AuthenticatedSubject |
assertIdentity(Node credential,
ContextHandler ctxHandler,
boolean isV2Assertion)
Use PrincipalAuthenticator to assert the identity of saml assertion |
static Subject |
getCurrentAuthenticatedSubject()
This will return the current authenticated subject for getting the SAML Attributes |
protected static String |
getEndpointPath(boolean isSaml2,
String url)
|
protected static DocumentBuilder |
getParser()
|
static Object[] |
getSAMLAssertionFromCredMapper(SecurityTokenContextHandler samlCtxHandler,
String assertionType)
This will get the crednetial object array of Element assertions from CM. |
static Object[] |
getSAMLAssertionFromCredMapper(SecurityTokenContextHandler samlCtxHandler,
String assertionType,
AuthenticatedSubject as)
|
static Object |
getSAMLCredential(boolean isSAML2,
String tokenType,
SecurityTokenContextHandler samlCtxHandler,
Object keyInfoCredential)
Get the saml credential from CredentialManager |
static Object |
getSAMLCredential(boolean isSAML2,
String tokenType,
SecurityTokenContextHandler samlCtxHandler,
Object keyInfoCredential,
AuthenticatedSubject as)
|
static X509Credential |
getX509CredFromPKICredMapper(SecurityTokenContextHandler samlCtxHandler)
load pki keypair |
static boolean |
isHolderOfKey(boolean isSAML2,
SecurityTokenContextHandler samlCtxHandler)
|
static boolean |
isHolderOfKey(String subjConfirmation)
|
protected static String |
mapSAML2ConfMethod(String method)
|
protected static String |
mapSAMLConfMethod(String method)
|
protected static void |
returnParser(DocumentBuilder builder)
|
static void |
setupSAMLAttributesContextElements(boolean isSAML2,
SecurityTokenContextHandler samlCtxHandler,
boolean attributesOnly,
SAMLAttributeStatementData samlAttributes)
Set up contexthandler properties for SAML Attributes |
static void |
setupSAMLContextElements(boolean isSAML2,
SecurityTokenContextHandler samlCtxHandler,
ContextHandler ctxHandler)
Set up contexthandler properties required by SAMLCredMapper |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String SAML_ATTRIBUTES
protected static final String SAML2_ATTRIBUTES
protected static final String SAML_ATTRIBUTE_ONLY
Constructor Detail |
---|
public CSSUtils()
Method Detail |
---|
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 Object getSAMLCredential(boolean isSAML2, String tokenType, SecurityTokenContextHandler samlCtxHandler, Object keyInfoCredential)
isSAML2
- true if requesting a SAML 2.0 assertiontokenType
- tokenType of requested assertionsamlCtxHandler
- the SecurityTokenContextHandler contains ClaimskeyInfoCredential
-
public static Object getSAMLCredential(boolean isSAML2, String tokenType, SecurityTokenContextHandler samlCtxHandler, Object keyInfoCredential, AuthenticatedSubject as)
public static boolean isHolderOfKey(boolean isSAML2, SecurityTokenContextHandler samlCtxHandler)
public static boolean isHolderOfKey(String subjConfirmation)
public static Subject getCurrentAuthenticatedSubject()
public static X509Credential getX509CredFromPKICredMapper(SecurityTokenContextHandler samlCtxHandler)
samlCtxHandler
-
public static Object[] getSAMLAssertionFromCredMapper(SecurityTokenContextHandler samlCtxHandler, String assertionType)
samlCtxHandler
- The KeyInfo node must be insert into the
SecurityTokenContextHandler before the call.assertionType
- Assert type to get
public static Object[] getSAMLAssertionFromCredMapper(SecurityTokenContextHandler samlCtxHandler, String assertionType, AuthenticatedSubject as)
public static AuthenticatedSubject assertIdentity(Node credential, ContextHandler ctxHandler, boolean isV2Assertion) throws LoginException
credential
- saml assertionctxHandler
- context handler
LoginException
- occurs during processprotected static DocumentBuilder getParser()
protected static void returnParser(DocumentBuilder builder)
protected static String getEndpointPath(boolean isSaml2, String url)
protected static String mapSAML2ConfMethod(String method)
protected static String mapSAMLConfMethod(String method)
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 11g Release 1 (10.3.6) Part Number E13941-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |