org.jboss.security.federation.service
Interface TrustService

All Known Implementing Classes:
Trust

public interface TrustService

A Trust Service represents the SSO Trust component of the Federation Service. A Trust Service makes sure that the assertions being processed by the Single Sign On components are valid. This is key to avoiding granting access to unauthorized users

Author:
Sohil Shah - sohil.shah@jboss.com - Oct 31, 2006

Method Summary
 java.lang.String generateSecret(java.lang.String tokenIdentifier)
          Generates a token secret understood by the Federation of partner applications only
 java.lang.String validateSecret(java.lang.String tokenIdentifier, java.lang.String secret)
          Validates the secret associated with the token being processed by the Single Sign On components
 

Method Detail

generateSecret

java.lang.String generateSecret(java.lang.String tokenIdentifier)
Generates a token secret understood by the Federation of partner applications only

Parameters:
tokenIdentifier - an identifier that can associate a secret with the corresponding token
Returns:
the secret

validateSecret

java.lang.String validateSecret(java.lang.String tokenIdentifier,
                                java.lang.String secret)
Validates the secret associated with the token being processed by the Single Sign On components

Parameters:
tokenIdentifier - an identifier that can associate a secret with the corresponding token
secret - the secret associated with the token being processed by the Single Sign On components
Returns:
a status of whether this secret is valid or not