org.jboss.security.federation.service
Class Trust

java.lang.Object
  extended by org.jboss.security.federation.service.Trust
All Implemented Interfaces:
TrustService

public class Trust
extends java.lang.Object
implements TrustService

Trust provides an implementation of the TrustService that can be managed via the jmx-console

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
static Trust getInstance()
          Creates an instance of the Trust Service for this instance of the Federation Server
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Trust getInstance()
Creates an instance of the Trust Service for this instance of the Federation Server

Returns:
an instance of the Trust Service

generateSecret

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

Specified by:
generateSecret in interface TrustService
Parameters:
tokenIdentifier - an identifier that can associate a secret with the corresponding token
Returns:
the secret

validateSecret

public 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

Specified by:
validateSecret in interface TrustService
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