Package com.sun.xml.wss.impl.filter
Class AuthenticationTokenFilter
java.lang.Object
com.sun.xml.wss.impl.filter.AuthenticationTokenFilter
processes diferent types of tokens like Username,X509,IssuedToken... etc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidgets the issued token and adds it to the security headerstatic voidsets the parameters nonce,creationtime,...etc to the username token adds this username token to the security headerstatic voidadds the issued token to the message if the message is not an inbound messagestatic voidprocessRSAToken(FilterProcessingContext context) processes the RSA tokenstatic voidprocessSamlToken(FilterProcessingContext context) imports and exports the SAML Assertionstatic voidif the message is incomming it gets Username Token from the meaage for outgoing it adds Username Token to the messagestatic voidprocessX509Token(FilterProcessingContext context) processes the X509 token , if anyresolveUserNameTokenData(FilterProcessingContext context, UsernameToken token, UsernameToken unToken, AuthenticationTokenPolicy policy) sets the username and password in the usernametoken
-
Constructor Details
-
AuthenticationTokenFilter
public AuthenticationTokenFilter()
-
-
Method Details
-
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
imports and exports the SAML Assertion- Parameters:
context- FilterProcessingContext- Throws:
XWSSecurityException
-
processIssuedToken
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- FilterProcessingContexttoken- UsernameTokenunToken- com.sun.xml.ws.security.opt.impl.tokens.UsernameTokenpolicy- 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
processes the X509 token , if any- Parameters:
context- FilterProcessingContext- Throws:
XWSSecurityException
-
processRSAToken
processes the RSA token- Parameters:
context- FilterProcessingContext- Throws:
XWSSecurityException
-