org.jboss.web.tomcat.service.sso.spi
Class SSOCredentials

java.lang.Object
  extended by org.jboss.web.tomcat.service.sso.spi.SSOCredentials
All Implemented Interfaces:
Serializable

public class SSOCredentials
extends Object
implements Serializable

Authentication credentials for an SSO.

Version:
$Revision: $
Author:
Brian E. Stansberry
See Also:
Serialized Form

Constructor Summary
SSOCredentials(String authType, String username, String password)
          Creates a new SSOCredentials.
 
Method Summary
 String getAuthType()
          Gets the authorization method used to authorize the SSO.
 String getPassword()
          Gets the password of the user associated with the SSO.
 String getUsername()
          Gets the username of the user associated with the SSO.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSOCredentials

public SSOCredentials(String authType,
                      String username,
                      String password)
Creates a new SSOCredentials.

Parameters:
authType - The authorization method used to authorize the SSO (BASIC, CLIENT-CERT, DIGEST, FORM or NONE).
username - The username of the user associated with the SSO
password - The password of the user associated with the SSO
Method Detail

getUsername

public String getUsername()
Gets the username of the user associated with the SSO.

Returns:
the username

getAuthType

public String getAuthType()
Gets the authorization method used to authorize the SSO.

Returns:
"BASIC", "CLIENT-CERT", "DIGEST" or "FORM"

getPassword

public String getPassword()
Gets the password of the user associated with the SSO.

Returns:
the password, or null if the authorization type was DIGEST or CLIENT-CERT.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.