|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.splunk.Resource
com.splunk.ResourceCollection<T>
com.splunk.EntityCollection<Password>
com.splunk.PasswordCollection
public class PasswordCollection
The PasswordCollection
class represents a collection of credentials.
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.ResourceCollection |
---|
itemClass, items |
Fields inherited from class com.splunk.Resource |
---|
actions, path, refreshArgs, service, title |
Method Summary | |
---|---|
boolean |
containsKey(java.lang.Object key)
|
Password |
create(java.lang.String name,
java.lang.String password)
Creates a credential with a username and password. |
Password |
create(java.lang.String name,
java.lang.String password,
java.lang.String realm)
Creates a credential with a username, password, and realm. |
Password |
get(java.lang.Object key)
Gets the value of a given key, if it exists within this collection. |
Password |
get(java.lang.String realm,
java.lang.String name)
Get a credential with realm and name. |
Password |
remove(java.lang.String key)
Removes an entity from this collection. |
Password |
remove(java.lang.String realm,
java.lang.String name)
Remove a credential with realm and name. |
Methods inherited from class com.splunk.EntityCollection |
---|
create, create, remove |
Methods inherited from class com.splunk.ResourceCollection |
---|
clear, containsKey, containsValue, createItem, createItem, entrySet, equals, get, hashCode, isEmpty, itemKey, itemPath, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Password create(java.lang.String name, java.lang.String password)
name
- The username.password
- The password.
public Password create(java.lang.String name, java.lang.String password, java.lang.String realm)
name
- The username.password
- The password.realm
- The credential realm.
public Password get(java.lang.String realm, java.lang.String name)
realm
- The credential realm.name
- The username.
public Password get(java.lang.Object key)
ResourceCollection
get
in interface java.util.Map<java.lang.String,Password>
get
in class ResourceCollection<Password>
key
- The key to look up.
null
if it doesn't
exist.public Password remove(java.lang.String realm, java.lang.String name)
realm
- The credential realm.name
- The username.
public Password remove(java.lang.String key)
EntityCollection
remove
in class EntityCollection<Password>
key
- The name of the entity to remove.
public boolean containsKey(java.lang.Object key)
ResourceCollection
containsKey
in interface java.util.Map<java.lang.String,Password>
containsKey
in class ResourceCollection<Password>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |