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

Part Number E13941-04

weblogic.wsee.security.saml
Class SAMLTokenImpl

java.lang.Object
  extended by weblogic.xml.crypto.wss.SecurityTokenImpl
      extended by weblogic.wsee.security.saml.SAMLTokenImpl
All Implemented Interfaces:
Serializable, SAMLToken, weblogic.xml.crypto.api.XMLStructure, SecurityToken, weblogic.xml.dom.marshal.WLDOMStructure
Direct Known Subclasses:
SAMLTrustToken

public class SAMLTokenImpl
extends SecurityTokenImpl
implements SAMLToken

User: jlee Date: Sep 25, 2004 Time: 10:41:20 AM

See Also:
Serialized Form

Constructor Summary
SAMLTokenImpl()
           
SAMLTokenImpl(Object cred)
           
SAMLTokenImpl(String valueType, Object cred)
           
 
Method Summary
 boolean equals(Object o)
           
 String getAssertionID()
           
 Object getCredential()
           
 X509Certificate getHolderOfCert()
           
 String getId()
           
 PrivateKey getPrivateKey()
           
 PublicKey getPublicKey()
           
 Key getSecretKey()
           
 Subject getSubject()
           
 String getValueType()
           
 boolean isFeatureSupported(String s)
           
 boolean isHolderOfKey()
           
 boolean isSaml2()
           
 void marshal(Element parentElement, Node nextSibling, Map namespaces)
          Creates a Node, serializes the object to it and adds it as a child to the parent element.
 void setId(String id)
           
 void setSubject(Subject subject)
           
 void unmarshal(Node node)
          Deserializes the object from a node.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLTokenImpl

public SAMLTokenImpl()

SAMLTokenImpl

public SAMLTokenImpl(Object cred)

SAMLTokenImpl

public SAMLTokenImpl(String valueType,
                     Object cred)
Method Detail

getCredential

public Object getCredential()
Specified by:
getCredential in interface SecurityToken
Overrides:
getCredential in class SecurityTokenImpl

getValueType

public String getValueType()
Specified by:
getValueType in interface SecurityToken
Specified by:
getValueType in class SecurityTokenImpl
Returns:
Token type URI.

getId

public String getId()
Specified by:
getId in interface SecurityToken
Specified by:
getId in class SecurityTokenImpl
Returns:
Value of id attribute of security token element.

isSaml2

public boolean isSaml2()
Specified by:
isSaml2 in interface SAMLToken

setId

public void setId(String id)
Specified by:
setId in interface SecurityToken
Specified by:
setId in class SecurityTokenImpl

getPrivateKey

public PrivateKey getPrivateKey()
Specified by:
getPrivateKey in interface SecurityToken
Specified by:
getPrivateKey in class SecurityTokenImpl

getPublicKey

public PublicKey getPublicKey()
Specified by:
getPublicKey in interface SecurityToken
Specified by:
getPublicKey in class SecurityTokenImpl

getSecretKey

public Key getSecretKey()
Specified by:
getSecretKey in interface SecurityToken
Specified by:
getSecretKey in class SecurityTokenImpl

getHolderOfCert

public X509Certificate getHolderOfCert()
Specified by:
getHolderOfCert in interface SAMLToken

getSubject

public Subject getSubject()
Specified by:
getSubject in interface SAMLToken

setSubject

public void setSubject(Subject subject)
Specified by:
setSubject in interface SAMLToken

marshal

public void marshal(Element parentElement,
                    Node nextSibling,
                    Map namespaces)
             throws weblogic.xml.dom.marshal.MarshalException
Description copied from interface: weblogic.xml.dom.marshal.WLDOMStructure
Creates a Node, serializes the object to it and adds it as a child to the parent element.

Specified by:
marshal in interface weblogic.xml.dom.marshal.WLDOMStructure
Parameters:
parentElement - Parent element of the node.
nextSibling - Sibling the node is inserted before. If nextSibling is null, the node has to be appended at the end.
namespaces - Namespace-prefix to URI mapping scoped for the node to create.
Throws:
weblogic.xml.dom.marshal.MarshalException

unmarshal

public void unmarshal(Node node)
               throws weblogic.xml.dom.marshal.MarshalException
Deserializes the object from a node.

Specified by:
unmarshal in interface weblogic.xml.dom.marshal.WLDOMStructure
Parameters:
node - Node the object is deserialzed from.
Throws:
weblogic.xml.dom.marshal.MarshalException

isFeatureSupported

public boolean isFeatureSupported(String s)
Specified by:
isFeatureSupported in interface weblogic.xml.crypto.api.XMLStructure

getAssertionID

public String getAssertionID()
Specified by:
getAssertionID in interface SAMLToken

isHolderOfKey

public boolean isHolderOfKey()
Specified by:
isHolderOfKey in interface SAMLToken

equals

public boolean equals(Object o)
Overrides:
equals in class Object

Copyright 1996, 2010, 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.4)

Part Number E13941-04