org.apache.slide.authenticate
Class CredentialsToken

java.lang.Object
  |
  +--org.apache.slide.authenticate.CredentialsToken

public final class CredentialsToken
extends java.lang.Object

Credentials token class.

Author:
Remy Maucherat

Constructor Summary
CredentialsToken(java.security.Principal principal)
          Constructor.
CredentialsToken(java.lang.String credentials)
          Constructor.
 
Method Summary
 java.lang.String getPrivateCredentials()
          Returns the private credentials.
 java.lang.String getPublicCredentials()
          Returns the public creddentials.
 boolean isTrusted()
          Is this credentials token to be trusted ?
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialsToken

public CredentialsToken(java.lang.String credentials)
Constructor.
Parameters:
credentials - Credentials stored in this token

CredentialsToken

public CredentialsToken(java.security.Principal principal)
Constructor.
Parameters:
credentials - Credentials stored in this token
Method Detail

isTrusted

public boolean isTrusted()
Is this credentials token to be trusted ?
Returns:
boolean

getPrivateCredentials

public java.lang.String getPrivateCredentials()
Returns the private credentials.
Returns:
String

getPublicCredentials

public java.lang.String getPublicCredentials()
Returns the public creddentials.
Returns:
String