org.ow2.shelbie.core.internal.history
Class DefaultIdentityProvider

java.lang.Object
  extended by org.ow2.shelbie.core.internal.history.DefaultIdentityProvider
All Implemented Interfaces:
org.ow2.shelbie.core.identity.IdentityProvider

public class DefaultIdentityProvider
extends Object
implements org.ow2.shelbie.core.identity.IdentityProvider

The default IdentityProvider implements a generic extraction strategy: If the Subject contains only 1 Principal (not a Group), it will return that Principal's name. It will throw an Exception if there is not only one mono-valued Principal.


Constructor Summary
DefaultIdentityProvider()
           
 
Method Summary
 String get(Subject subject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIdentityProvider

public DefaultIdentityProvider()
Method Detail

get

public String get(Subject subject)
Specified by:
get in interface org.ow2.shelbie.core.identity.IdentityProvider


Copyright © 2013 OW2 Consortium. All Rights Reserved.