Interface RequestedSecurityToken
-
- All Known Implementing Classes:
SAML11RequestedSecurityToken
public interface RequestedSecurityTokenThis interface encapsulates the WS-Trust <RequestedSecurityToken> element
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListgetAttributes()StringgetIssuer()StringgetTokenId()Map<String,Object>verifyToken(String realm, String hostEntityId, int timeskew)Verifies the token's validity, checking the signature, validity period etc.
-
-
-
Method Detail
-
getAttributes
List getAttributes()
- Returns:
- a list of attributes in the RequestedSecurityToken. The type of the List content is dependent on the implementation.
-
getIssuer
String getIssuer()
- Returns:
- the issuer of the RequestedSecurityToken.
-
getTokenId
String getTokenId()
- Returns:
- the unique identifier of the RequestedSecurityToken.
-
verifyToken
Map<String,Object> verifyToken(String realm, String hostEntityId, int timeskew) throws WSFederationException
Verifies the token's validity, checking the signature, validity period etc.- Parameters:
realm- the realm of the local entityhostEntityId- the local entity IDtimeskew- permitted skew between service provider and identity provider clocks, in seconds- Returns:
- a Map of relevant data including Subject and the List of Assertions.
- Throws:
WSFederationException- in case of any error - invalid token signature, token expired etc.
-
-