Oracle Fusion Middleware
Oracle WebLogic Server API Reference
12c Release 1 (12.1.1)

Part Number E24391-02

weblogic.xml.crypto.wss.provider
Interface SecurityTokenHandler

All Known Implementing Classes:
AbstractSAMLTokenHandler, BinarySecurityTokenHandler, ClientBSTHandler, ClientUNTHandler, SAML2TokenHandler, SAMLTokenHandler, UsernameTokenHandler

Deprecated. can not be used directly by customers

public interface SecurityTokenHandler


Method Summary
 weblogic.xml.crypto.common.keyinfo.KeyProvider getKeyProvider(SecurityToken token, MessageContext ctx)
          Deprecated.  
 QName[] getQNames()
          Deprecated. Returns an array of QNames of the SecurityTokens this factory can create from an according DOM node.
 SecurityToken getSecurityToken(SecurityTokenReference str, MessageContext ctx)
          Deprecated.  
 SecurityToken getSecurityToken(String valueType, Object credentials, ContextHandler ctxHandler)
          Deprecated.  
 SecurityToken getSecurityToken(String valueType, String issuer, Purpose p, ContextHandler ctxHandler)
          Deprecated.  
 SecurityTokenReference getSTR(QName STRType, String valueType, SecurityToken token)
          Deprecated. Creates a SecurityTokenReference from a SecurityToken or Credential.
 Subject getSubject(SecurityToken token, MessageContext msgCtx)
          Deprecated.  
 String[] getValueTypes()
          Deprecated. Returns an array of ValueType URIs of the SecurityTokens this factory can create from an according DOM node.
 boolean matches(SecurityToken token, String tokenType, String issuerName, ContextHandler ctxHandler, Purpose p)
          Deprecated.  
 SecurityToken newSecurityToken(Node node)
          Deprecated. Creates a SecurityToken from a node.
 SecurityTokenReference newSecurityTokenReference(Node node)
          Deprecated.  
 SecurityTokenValidateResult validateProcessed(SecurityToken token, MessageContext ctx)
          Deprecated.  
 SecurityTokenValidateResult validateUnmarshalled(SecurityToken token, MessageContext ctx)
          Deprecated.  
 

Method Detail

getSecurityToken

SecurityToken getSecurityToken(String valueType,
                               Object credentials,
                               ContextHandler ctxHandler)
Deprecated. 

getSecurityToken

SecurityToken getSecurityToken(String valueType,
                               String issuer,
                               Purpose p,
                               ContextHandler ctxHandler)
Deprecated. 

getSTR

SecurityTokenReference getSTR(QName STRType,
                              String valueType,
                              SecurityToken token)
Deprecated. 
Creates a SecurityTokenReference from a SecurityToken or Credential. If STRType is WSSConstants.REFERENCE_QNAME, the implementation can set the URI on the SecurityTokenReference. If it does and if the URI points to the SecurityToken, it must also set the Id on the SecurityToken accordingly. If the URI is not set, the WSS runtime will set the SecurityTokenReference URI and the SecurityToken Id.

Parameters:
STRType - QName of the child element of SecurityTokenReference that specifies the reference mechanism. Allowed values are WSSConstants.REFERENCE_QNAME, WSSConstants.EMBEDDED_QNAME, and WSSConstants.KEY_IDENTIFIER_QNAME.
valueType - ValueType attribute used in Reference or KeyIdentifier child element of SecurityTokenReference.
token - SecurityToken to create the SecurityTokenReference from.
Returns:
The SecurityTokenReference.

getQNames

QName[] getQNames()
Deprecated. 
Returns an array of QNames of the SecurityTokens this factory can create from an according DOM node. The factory will be used for creating SecurityTokens from element nodes with QNames matching any in the array. SecurityTokenFactories that handle custom ValueTypes for Binary Security Tokens should return an empty array here and use getValueTypes() to return the ValueType URIs.

Returns:
array of QNames of SecurityTokens this factory can create

getValueTypes

String[] getValueTypes()
Deprecated. 
Returns an array of ValueType URIs of the SecurityTokens this factory can create from an according DOM node. See also getQNames.

Returns:
array of ValueType URIs of SecurityTokens this factory can create

newSecurityToken

SecurityToken newSecurityToken(Node node)
                               throws weblogic.xml.crypto.api.MarshalException
Deprecated. 
Creates a SecurityToken from a node. This can either just instantiate the SecurityToken or instantiate and unmarshal it from the node. In the former case the unmarshalling can be done in SecurityToken.unmarshal(Node node).

Parameters:
node - the node the SecurityToken is created from
Returns:
the SecurityToken
Throws:
weblogic.xml.crypto.api.MarshalException

newSecurityTokenReference

SecurityTokenReference newSecurityTokenReference(Node node)
                                                 throws weblogic.xml.dom.marshal.MarshalException
Deprecated. 
Throws:
weblogic.xml.dom.marshal.MarshalException

getKeyProvider

weblogic.xml.crypto.common.keyinfo.KeyProvider getKeyProvider(SecurityToken token,
                                                              MessageContext ctx)
Deprecated. 

getSecurityToken

SecurityToken getSecurityToken(SecurityTokenReference str,
                               MessageContext ctx)
Deprecated. 

validateUnmarshalled

SecurityTokenValidateResult validateUnmarshalled(SecurityToken token,
                                                 MessageContext ctx)
Deprecated. 

validateProcessed

SecurityTokenValidateResult validateProcessed(SecurityToken token,
                                              MessageContext ctx)
Deprecated. 

matches

boolean matches(SecurityToken token,
                String tokenType,
                String issuerName,
                ContextHandler ctxHandler,
                Purpose p)
Deprecated. 

getSubject

Subject getSubject(SecurityToken token,
                   MessageContext msgCtx)
Deprecated. 

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
12c Release 1 (12.1.1)

Part Number E24391-02