Esri Geoportal Server
1.0

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

java.lang.Object
  extended by com.esri.gpt.framework.security.credentials.Credentials
      extended by com.esri.gpt.framework.security.credentials.UsernameCredential

public class UsernameCredential
extends Credentials

Stores a username credential.

This credential should not be used in a challenge/response situation. It should only be used when a trusted mechanism (typically single sign-on) has supplied a username.


Constructor Summary
UsernameCredential()
          Default constructor.
UsernameCredential(String username)
          Constructs with a supplied username.
 
Method Summary
 String getUsername()
          Gets the username.
 void setUsername(String username)
          Sets the username.
 
Methods inherited from class com.esri.gpt.framework.security.credentials.Credentials
getUsernamePasswordCredentials, hasUsernamePasswordCredentials
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsernameCredential

public UsernameCredential()
Default constructor.


UsernameCredential

public UsernameCredential(String username)
Constructs with a supplied username.

Parameters:
username - the username
Method Detail

getUsername

public String getUsername()
Gets the username.

Returns:
the username

setUsername

public void setUsername(String username)
Sets the username.

Parameters:
username - the username

Esri Geoportal Server
1.0

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