Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.xml.crypto.wss
Class SecurityTokenReferenceImpl

java.lang.Object
  extended by weblogic.xml.crypto.wss.SecurityTokenReferenceImpl
All Implemented Interfaces:
XMLStructure, KeyInfoObjectFactory, SecurityTokenReference, WLDOMStructure
Direct Known Subclasses:
SAMLSecurityTokenReference

public class SecurityTokenReferenceImpl
extends Object
implements SecurityTokenReference, KeyInfoObjectFactory


Constructor Summary
SecurityTokenReferenceImpl()
           
SecurityTokenReferenceImpl(QName STRType, String valueType, SecurityToken token)
           
 
Method Summary
static SecurityTokenReference createAndUnmarshal(Node node)
           
 String getId()
           
 X509IssuerSerial getIssuerSerial()
           
 KeyIdentifier getKeyIdentifier()
           
protected static String getPrefix(Map namespaces, String ns, String defaultPrefix)
           
 QName getQName()
           
 String getReferenceURI()
           
 SecurityToken getSecurityToken()
           
static Node getStrNode(SecurityTokenReference str)
           
 QName getSTRType()
           
 String getUsage()
           
 String getValueType()
           
 boolean isFeatureSupported(String feature)
           
 void marshal(Element parent, Node nextSibling, Map namespaces)
          Creates a Node, serializes the object to it and adds it as a child to the parent element.
protected  void marshalAttributes(Element str, Map namespaces)
           
 Node marshalDirectRef(Element parent, Node nextSibling, Map namespaces, String uri)
           
 Node marshalEmbeddedRef(Element parent, Node nextSibling, Map namespaces, SecurityToken token)
           
protected  Element marshalInternal(Element parent, Node nextSibling, Map namespaces)
           
 Node marshalKeyIdRef(Element parent, Node nextSibling, Map namespaces, KeyIdentifier keyId)
           
 Object newKeyInfoObject(XMLStreamReader reader)
           
static void register(SecurityTokenHandler handler)
           
 void setId(String id)
           
 void setKeyIdentifier(KeyIdentifier keyId)
           
 void setReferenceURI(String uri)
           
 void setSTRType(QName STRType)
           
 void setValueType(String valueType)
           
 void unmarshal(Node node)
          Deserializes the object from a node.
 void unmarshalDirectRef(Element STRTypeNode)
           
 void unmarshalEmbeddedRef(Element STRTypeNode)
           
protected  void unmarshalInternal(Node node)
           
 void unmarshalKeyIdRef(Element STRTypeNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityTokenReferenceImpl

public SecurityTokenReferenceImpl()

SecurityTokenReferenceImpl

public SecurityTokenReferenceImpl(QName STRType,
                                  String valueType,
                                  SecurityToken token)
Method Detail

register

public static void register(SecurityTokenHandler handler)

getValueType

public String getValueType()
Specified by:
getValueType in interface SecurityTokenReference

getSTRType

public QName getSTRType()
Specified by:
getSTRType in interface SecurityTokenReference

setSTRType

public void setSTRType(QName STRType)
Specified by:
setSTRType in interface SecurityTokenReference

getIssuerSerial

public X509IssuerSerial getIssuerSerial()
Specified by:
getIssuerSerial in interface SecurityTokenReference

setValueType

public void setValueType(String valueType)
Specified by:
setValueType in interface SecurityTokenReference

getId

public String getId()
Specified by:
getId in interface SecurityTokenReference

setId

public void setId(String id)
Specified by:
setId in interface SecurityTokenReference

getUsage

public String getUsage()

getKeyIdentifier

public KeyIdentifier getKeyIdentifier()
Specified by:
getKeyIdentifier in interface SecurityTokenReference

setKeyIdentifier

public void setKeyIdentifier(KeyIdentifier keyId)
Specified by:
setKeyIdentifier in interface SecurityTokenReference

getReferenceURI

public String getReferenceURI()
Specified by:
getReferenceURI in interface SecurityTokenReference

setReferenceURI

public void setReferenceURI(String uri)
Specified by:
setReferenceURI in interface SecurityTokenReference

getSecurityToken

public SecurityToken getSecurityToken()
Specified by:
getSecurityToken in interface SecurityTokenReference

marshal

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

Specified by:
marshal in interface WLDOMStructure
Parameters:
parent - 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:
MarshalException

unmarshal

public void unmarshal(Node node)
               throws MarshalException
Description copied from interface: WLDOMStructure
Deserializes the object from a node.

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

unmarshalInternal

protected void unmarshalInternal(Node node)

createAndUnmarshal

public static SecurityTokenReference createAndUnmarshal(Node node)
                                                 throws MarshalException
Throws:
MarshalException

getQName

public QName getQName()
Specified by:
getQName in interface KeyInfoObjectFactory

newKeyInfoObject

public Object newKeyInfoObject(XMLStreamReader reader)
                        throws MarshalException
Specified by:
newKeyInfoObject in interface KeyInfoObjectFactory
Throws:
MarshalException

isFeatureSupported

public boolean isFeatureSupported(String feature)
Specified by:
isFeatureSupported in interface XMLStructure

marshalInternal

protected Element marshalInternal(Element parent,
                                  Node nextSibling,
                                  Map namespaces)

marshalAttributes

protected void marshalAttributes(Element str,
                                 Map namespaces)

getPrefix

protected static String getPrefix(Map namespaces,
                                  String ns,
                                  String defaultPrefix)

marshalDirectRef

public Node marshalDirectRef(Element parent,
                             Node nextSibling,
                             Map namespaces,
                             String uri)

marshalEmbeddedRef

public Node marshalEmbeddedRef(Element parent,
                               Node nextSibling,
                               Map namespaces,
                               SecurityToken token)
                        throws MarshalException
Throws:
MarshalException

marshalKeyIdRef

public Node marshalKeyIdRef(Element parent,
                            Node nextSibling,
                            Map namespaces,
                            KeyIdentifier keyId)
                     throws MarshalException
Throws:
MarshalException

unmarshalDirectRef

public void unmarshalDirectRef(Element STRTypeNode)

unmarshalKeyIdRef

public void unmarshalKeyIdRef(Element STRTypeNode)
                       throws MarshalException
Throws:
MarshalException

unmarshalEmbeddedRef

public void unmarshalEmbeddedRef(Element STRTypeNode)
                          throws MarshalException
Throws:
MarshalException

getStrNode

public static Node getStrNode(SecurityTokenReference str)
                       throws MarshalException
Throws:
MarshalException

Copyright 1996, 2013, 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
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01