Esri Geoportal Server
1.0

com.esri.gpt.framework.security.credentials
Class Credentials

java.lang.Object
  extended by com.esri.gpt.framework.security.credentials.Credentials
Direct Known Subclasses:
DistinguishedNameCredential, UsernameCredential, UsernamePasswordCredentials

public class Credentials
extends Object

Super-class for security credentials.

This class contains no default properties or methods, and serves as a base for multiple credential types. Typically credentials are supplied as a username and password, but other types are possible.


Constructor Summary
Credentials()
          Default constructor.
 
Method Summary
 UsernamePasswordCredentials getUsernamePasswordCredentials()
          Convenience method to cast these credentials to UsernamePasswordCredentials if applicable.
 boolean hasUsernamePasswordCredentials()
          Determines if these credentials are UsernamePasswordCredentials.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Credentials

public Credentials()
Default constructor.

Method Detail

hasUsernamePasswordCredentials

public boolean hasUsernamePasswordCredentials()
Determines if these credentials are UsernamePasswordCredentials.

Returns:
true if these credentials are UsernamePasswordCredentials

getUsernamePasswordCredentials

public UsernamePasswordCredentials getUsernamePasswordCredentials()
Convenience method to cast these credentials to UsernamePasswordCredentials if applicable.

Returns:
a cast to UsernamePasswordCredentials is applicable, else a null is returned

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.