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

Part Number E41849-02

weblogic.xml.crypto.wss.provider
Interface SecurityTokenHandler

All Known Implementing Classes:
AbstractSAMLTokenHandler, SAML2TokenHandler, SAMLTokenHandler

Deprecated. can not be used directly by customers

public interface SecurityTokenHandler


Method Summary
 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)
                               throws WSSecurityException
Deprecated. 
Throws:
WSSecurityException

getSecurityToken

SecurityToken getSecurityToken(String valueType,
                               String issuer,
                               Purpose p,
                               ContextHandler ctxHandler)
                               throws WSSecurityException
Deprecated. 
Throws:
WSSecurityException

getSTR

SecurityTokenReference getSTR(QName STRType,
                              String valueType,
                              SecurityToken token)
                              throws WSSecurityException
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.
Throws:
WSSecurityException

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 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:
MarshalException

newSecurityTokenReference

SecurityTokenReference newSecurityTokenReference(Node node)
                                                 throws MarshalException
Deprecated. 
Throws:
MarshalException

getKeyProvider

KeyProvider getKeyProvider(SecurityToken token,
                           MessageContext ctx)
Deprecated. 

getSecurityToken

SecurityToken getSecurityToken(SecurityTokenReference str,
                               MessageContext ctx)
                               throws WSSecurityException
Deprecated. 
Throws:
WSSecurityException

validateUnmarshalled

SecurityTokenValidateResult validateUnmarshalled(SecurityToken token,
                                                 MessageContext ctx)
                                                 throws WSSecurityException
Deprecated. 
Throws:
WSSecurityException

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)
                   throws WSSecurityException
Deprecated. 
Throws:
WSSecurityException

Copyright 1996, 2014, 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.3)

Part Number E41849-02