org.jboss.soa.esb.services.security.auth.login
Class SamlContext

java.lang.Object
  extended by org.jboss.soa.esb.services.security.auth.login.SamlContext

public final class SamlContext
extends java.lang.Object

SamlContext provides a way to retreive a SamlCredential or Set of SamlCredentials from the current Subject.

Author:
Daniel Bevenius

Method Summary
static SamlCredential getFirstSamlCredential()
          Gets the first SamlCredential belonging to the current Subject.
static java.util.Set<SamlCredential> getSamlCredentials()
          Get a list of the Subject SamlCredentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSamlCredentials

public static java.util.Set<SamlCredential> getSamlCredentials()
Get a list of the Subject SamlCredentials.

Returns:
Set Set of SamlCredentials. This method will return an empty set if no SamlCredentials exist.

getFirstSamlCredential

public static SamlCredential getFirstSamlCredential()
Gets the first SamlCredential belonging to the current Subject.

Returns:
SamlCredential The first SamlCredential or null if there are none.