Apache CXF API

org.apache.cxf.sts.token.provider
Interface TokenProvider

All Known Implementing Classes:
SAMLTokenProvider, SCTProvider

public interface TokenProvider

An interface that can provide a security token.


Method Summary
 boolean canHandleToken(String tokenType)
          Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType
 boolean canHandleToken(String tokenType, String realm)
          Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm
 TokenProviderResponse createToken(TokenProviderParameters tokenParameters)
          Create a token given a TokenProviderParameters
 

Method Detail

canHandleToken

boolean canHandleToken(String tokenType)
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType


canHandleToken

boolean canHandleToken(String tokenType,
                       String realm)
Return true if this TokenProvider implementation is capable of providing a token that corresponds to the given TokenType in a given realm


createToken

TokenProviderResponse createToken(TokenProviderParameters tokenParameters)
Create a token given a TokenProviderParameters


Apache CXF API

Apache CXF