Oracle Fusion Middleware
Oracle WebLogic Server API Reference
11g Release 1 (10.3.5)

Part Number E13941-05

weblogic.wsee.security.saml
Class SAMLUtils

java.lang.Object
  extended by weblogic.wsee.security.saml.SAMLUtils

public class SAMLUtils
extends Object

Utility class for SAML credentials/tokens.


Field Summary
static String SAML_ATN_STATEMENT_TAG
           
static String SAML_ATTRIBUTE_STATEMENT_TAG
           
static String SAML_SUBJCONF_TAG
           
static String SAML_SUBJECT_TAG
           
 
Constructor Summary
SAMLUtils()
           
 
Method Summary
static Element getFirstMatchingChildElement(Element parent, String childName)
           
static Subject getJavaSubjectFromSamlElement(Node samlNode)
           
static Element getNameIdentifierElm(Element subjectElm)
           
static Node getReplaceAttributeStmtToAuthenticateStmtSAMLNode(Element saml)
          This is a hack when SAML
static Element getSubjectElementFromSamlAssertion(Element saml)
           
static String getTokenTypeFromAssertionElement(Element token)
           
static boolean hasAttributeNoAuthenticateStmt(Element saml)
           
static boolean hasX509SubjectName(Element nameIdentifierElm)
          check if the SAML has X509SubjectName CN=SAML User,OU=SU,O=SAML User,L=Los Angeles,ST=CA,C=US or CN=Alice,OU=OASIS Interop Test Cert,O=OASIS
static boolean isEquivalentSamlTokenType(String type1, String type2)
           
static boolean isSamlTokenType(String tokenType)
          Check if this is a SAML Token type
static boolean isSymmetricKeyType(String keyType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAML_SUBJECT_TAG

public static final String SAML_SUBJECT_TAG
See Also:
Constant Field Values

SAML_ATN_STATEMENT_TAG

public static final String SAML_ATN_STATEMENT_TAG
See Also:
Constant Field Values

SAML_ATTRIBUTE_STATEMENT_TAG

public static final String SAML_ATTRIBUTE_STATEMENT_TAG
See Also:
Constant Field Values

SAML_SUBJCONF_TAG

public static final String SAML_SUBJCONF_TAG
See Also:
Constant Field Values
Constructor Detail

SAMLUtils

public SAMLUtils()
Method Detail

getTokenTypeFromAssertionElement

public static String getTokenTypeFromAssertionElement(Element token)

isEquivalentSamlTokenType

public static boolean isEquivalentSamlTokenType(String type1,
                                                String type2)

isSamlTokenType

public static boolean isSamlTokenType(String tokenType)
Check if this is a SAML Token type

Parameters:
tokenType - token type to be checked
Returns:
true for SAML Token type; false otherwise

isSymmetricKeyType

public static boolean isSymmetricKeyType(String keyType)

getFirstMatchingChildElement

public static Element getFirstMatchingChildElement(Element parent,
                                                   String childName)

getReplaceAttributeStmtToAuthenticateStmtSAMLNode

public static Node getReplaceAttributeStmtToAuthenticateStmtSAMLNode(Element saml)
This is a hack when SAML

Parameters:
saml - saml node
Returns:
replaced SAML node

hasAttributeNoAuthenticateStmt

public static boolean hasAttributeNoAuthenticateStmt(Element saml)

getSubjectElementFromSamlAssertion

public static Element getSubjectElementFromSamlAssertion(Element saml)

getNameIdentifierElm

public static Element getNameIdentifierElm(Element subjectElm)

hasX509SubjectName

public static boolean hasX509SubjectName(Element nameIdentifierElm)
check if the SAML has X509SubjectName CN=SAML User,OU=SU,O=SAML User,L=Los Angeles,ST=CA,C=US or CN=Alice,OU=OASIS Interop Test Cert,O=OASIS

Parameters:
nameIdentifierElm -
Returns:

getJavaSubjectFromSamlElement

public static Subject getJavaSubjectFromSamlElement(Node samlNode)

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.5)

Part Number E13941-05