com.sun.sgs.impl.auth
Class NamePasswordCredentials

java.lang.Object
  extended by com.sun.sgs.impl.auth.NamePasswordCredentials
All Implemented Interfaces:
IdentityCredentials

public class NamePasswordCredentials
extends Object
implements IdentityCredentials

This simple implementation of IdentityCredentials is used to represent a name and password pair.


Field Summary
static String TYPE_IDENTIFIER
          The identifier for this type of credentials.
 
Constructor Summary
NamePasswordCredentials(String name, char[] password)
          Creates an instance of NamePasswordCredentials.
 
Method Summary
 String getCredentialsType()
          Returns the identifier for the type of credentials.
 String getName()
          Returns the name.
 char[] getPassword()
          Returns the password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_IDENTIFIER

public static final String TYPE_IDENTIFIER
The identifier for this type of credentials.

See Also:
Constant Field Values
Constructor Detail

NamePasswordCredentials

public NamePasswordCredentials(String name,
                               char[] password)
Creates an instance of NamePasswordCredentials.

Parameters:
name - the name
password - the password
Method Detail

getCredentialsType

public String getCredentialsType()
Returns the identifier for the type of credentials. This will be used by the IdentityManager to find applicable IdentityAuthenticators to consume these credentials.

Specified by:
getCredentialsType in interface IdentityCredentials
Returns:
an identifier for the type of credentials

getName

public String getName()
Returns the name.

Returns:
the name

getPassword

public char[] getPassword()
Returns the password.

Returns:
the password

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved