com.sun.xml.wss.impl.filter
Class AuthenticationTokenFilter

java.lang.Object
  extended by com.sun.xml.wss.impl.filter.AuthenticationTokenFilter

public class AuthenticationTokenFilter
extends Object

processes diferent types of tokens like Username,X509,IssuedToken... etc


Constructor Summary
AuthenticationTokenFilter()
           
 
Method Summary
static void addIssuedTokenToMessage(FilterProcessingContext context)
          gets the issued token and adds it to the security header
static void addUserNameTokenToMessage(FilterProcessingContext context)
          sets the parameters nonce,creationtime,...etc to the username token adds this username token to the security header
static void processIssuedToken(FilterProcessingContext context)
          adds the issued token to the message if the message is not an inbound message
static void processRSAToken(FilterProcessingContext context)
          processes the RSA token
static void processSamlToken(FilterProcessingContext context)
          imports and exports the SAML Assertion
static void processUserNameToken(FilterProcessingContext context)
          if the message is incomming it gets Username Token from the meaage for outgoing it adds Username Token to the message
static void processX509Token(FilterProcessingContext context)
          processes the X509 token , if any
static AuthenticationTokenPolicy.UsernameTokenBinding resolveUserNameTokenData(FilterProcessingContext context, UsernameToken token, UsernameToken unToken, AuthenticationTokenPolicy policy)
          sets the username and password in the usernametoken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationTokenFilter

public AuthenticationTokenFilter()
Method Detail

processUserNameToken

public static void processUserNameToken(FilterProcessingContext context)
                                 throws XWSSecurityException
if the message is incomming it gets Username Token from the meaage for outgoing it adds Username Token to the message

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException

processSamlToken

public static void processSamlToken(FilterProcessingContext context)
                             throws XWSSecurityException
imports and exports the SAML Assertion

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException

processIssuedToken

public static void processIssuedToken(FilterProcessingContext context)
                               throws XWSSecurityException
adds the issued token to the message if the message is not an inbound message

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException

resolveUserNameTokenData

public static AuthenticationTokenPolicy.UsernameTokenBinding resolveUserNameTokenData(FilterProcessingContext context,
                                                                                      UsernameToken token,
                                                                                      UsernameToken unToken,
                                                                                      AuthenticationTokenPolicy policy)
                                                                               throws XWSSecurityException
sets the username and password in the usernametoken

Parameters:
context - FilterProcessingContext
token - UsernameToken
unToken - com.sun.xml.ws.security.opt.impl.tokens.UsernameToken
policy - AuthenticationTokenPolicy
Returns:
userNamePolicy UsernameTokenBinding
Throws:
XWSSecurityException

addUserNameTokenToMessage

public static void addUserNameTokenToMessage(FilterProcessingContext context)
                                      throws XWSSecurityException
sets the parameters nonce,creationtime,...etc to the username token adds this username token to the security header

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException

addIssuedTokenToMessage

public static void addIssuedTokenToMessage(FilterProcessingContext context)
                                    throws XWSSecurityException
gets the issued token and adds it to the security header

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException

processX509Token

public static void processX509Token(FilterProcessingContext context)
                             throws XWSSecurityException
processes the X509 token , if any

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException

processRSAToken

public static void processRSAToken(FilterProcessingContext context)
                            throws XWSSecurityException
processes the RSA token

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.