org.jasig.cas.authentication.principal
Class ShibbolethCompatiblePersistentIdGenerator

java.lang.Object
  extended by org.jasig.cas.authentication.principal.ShibbolethCompatiblePersistentIdGenerator
All Implemented Interfaces:
PersistentIdGenerator

public final class ShibbolethCompatiblePersistentIdGenerator
extends java.lang.Object
implements PersistentIdGenerator

Generates PersistentIds based on the Shibboleth algorithm.

Since:
3.1
Version:
$Revision: 1.1 $ $Date: 2007/04/20 19:39:31 $
Author:
Scott Battaglia

Constructor Summary
ShibbolethCompatiblePersistentIdGenerator()
           
 
Method Summary
 java.lang.String generate(Principal principal, Service service)
          Generates a PersistentId based on some algorithm plus the principal and service.
 void setSalt(java.lang.String salt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShibbolethCompatiblePersistentIdGenerator

public ShibbolethCompatiblePersistentIdGenerator()
Method Detail

generate

public java.lang.String generate(Principal principal,
                                 Service service)
Description copied from interface: PersistentIdGenerator
Generates a PersistentId based on some algorithm plus the principal and service.

Specified by:
generate in interface PersistentIdGenerator
Parameters:
principal - the principal to generate the id for.
service - the service to generate the id for.
Returns:
the generated persistent id.

setSalt

public void setSalt(java.lang.String salt)


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.