public class PasswordCollection extends EntityCollection<Password>
PasswordCollection
class represents a collection of credentials.itemClass, items
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
Password |
create(String name,
String password)
Creates a credential with a username and password.
|
Password |
create(String name,
String password,
String realm)
Creates a credential with a username, password, and realm.
|
Password |
get(Object key)
Gets the value of a given key, if it exists within this collection.
|
Password |
get(String realm,
String name)
Get a credential with realm and name.
|
Password |
remove(String key)
Removes an entity from this collection.
|
Password |
remove(String realm,
String name)
Remove a credential with realm and name.
|
create, create, remove
clear, containsKey, containsValue, createItem, createItem, entrySet, equals, get, hashCode, isEmpty, itemKey, itemPath, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Password create(String name, String password)
name
- The username.password
- The password.public Password create(String name, String password, String realm)
name
- The username.password
- The password.realm
- The credential realm.public Password get(String realm, String name)
realm
- The credential realm.name
- The username.public Password get(Object key)
ResourceCollection
public Password remove(String realm, String name)
realm
- The credential realm.name
- The username.public Password remove(String key)
EntityCollection
remove
in class EntityCollection<Password>
key
- The name of the entity to remove.public boolean containsKey(Object key)
ResourceCollection
containsKey
in interface Map<String,Password>
containsKey
in class ResourceCollection<Password>
Copyright © 2022 Splunk, Inc.. All rights reserved.