Package com.sun.identity.wss.security
Interface TokenProvider
-
- All Known Implementing Classes:
AMTokenProvider
public interface TokenProviderThe interfaceTokenProviderrepresents a Security Token provider for generating the Security Tokens.Each token provider implementation must implement this interface to generate the
SecurityTokens that may be attached to the Web services security (SOAP) headers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityTokengetSecurityToken()Returns theSecurityTokenfor the WS-Security.voidinit(SecurityTokenSpec tokenSpec)Initializes theTokenProviderto generate the necessary Security Token.
-
-
-
Method Detail
-
init
void init(SecurityTokenSpec tokenSpec)
Initializes theTokenProviderto generate the necessary Security Token.- Parameters:
tokenSpec- the token specification required to generate the Security Token.
-
getSecurityToken
SecurityToken getSecurityToken() throws SecurityException
Returns theSecurityTokenfor the WS-Security.- Returns:
- the Security Token.
- Throws:
SecurityException- if unable to generate the Security Token.
-
-