org.apache.cocoon.components.repository.helpers
Class CredentialsToken

java.lang.Object
  extended by org.apache.cocoon.components.repository.helpers.CredentialsToken

public class CredentialsToken
extends Object

A CredentialsToken class to be used with a repository implementation.


Constructor Summary
CredentialsToken(Principal principal, String credentials)
          creates a CredentialsToken
 
Method Summary
 String getCredentials()
          get the credentials belonging to the credentials token
 Principal getPrincipal()
          get the principal belonging to the credentials token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialsToken

public CredentialsToken(Principal principal,
                        String credentials)
creates a CredentialsToken

Parameters:
principal - the principal belonging to the credentials token.
credentials - the credentials of the credentials token.
Method Detail

getPrincipal

public Principal getPrincipal()
get the principal belonging to the credentials token

Returns:
the principal.

getCredentials

public String getCredentials()
get the credentials belonging to the credentials token

Returns:
String


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.