com.splunk
Class Password

java.lang.Object
  extended by com.splunk.Resource
      extended by com.splunk.Entity
          extended by com.splunk.Password
All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>

public class Password
extends Entity

The Password class represents a saved credential.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class com.splunk.Entity
toUpdate
 
Fields inherited from class com.splunk.Resource
actions, path, refreshArgs, service, title
 
Method Summary
 java.lang.String getClearPassword()
          Returns the clear-text password for this credential.
 java.lang.String getEncryptedPassword()
          Returns the encrypted password for this credential.
 java.lang.String getName()
          Returns the username for this credential.
 java.lang.String getPassword()
          Returns the displayable password string for this credential.
 java.lang.String getRealm()
          Returns the credential realm.
 java.lang.String getUsername()
          Returns the username for this credential.
 void setPassword(java.lang.String password)
          Sets the password for this credential.
 
Methods inherited from class com.splunk.Entity
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, update, update, validate, values
 
Methods inherited from class com.splunk.Resource
getPath, getService, getTitle, invalidate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Method Detail

getClearPassword

public java.lang.String getClearPassword()
Returns the clear-text password for this credential.

Returns:
The clear-text password.

getEncryptedPassword

public java.lang.String getEncryptedPassword()
Returns the encrypted password for this credential.

Returns:
The encrypted password.

getName

public java.lang.String getName()
Returns the username for this credential.

Overrides:
getName in class Resource
Returns:
The username.

getPassword

public java.lang.String getPassword()
Returns the displayable password string for this credential.

Returns:
The displayable password string, as asterisks.

getRealm

public java.lang.String getRealm()
Returns the credential realm.

Returns:
The realm.

getUsername

public java.lang.String getUsername()
Returns the username for this credential.

Returns:
The username.

setPassword

public void setPassword(java.lang.String password)
Sets the password for this credential.

Parameters:
password - The password.