public class CredentialPermissions
extends java.lang.Object
Permission
s associated with a credential. Clients don't
typically instantiate objects of this type, but will receive them in response
to write and retrieve requests.Constructor and Description |
---|
CredentialPermissions(CredentialName credentialName,
Permission... permissions)
Create a
CredentialPermissions from the provided parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCredentialName()
Get the name of the credential that the permissions apply to.
|
java.util.List<Permission> |
getPermissions()
Get the collection of
Permission s. |
int |
hashCode() |
java.lang.String |
toString() |
public CredentialPermissions(CredentialName credentialName, Permission... permissions)
CredentialPermissions
from the provided parameters. Intended for internal
use. Clients will get CredentialPermissions
objects populated from
CredHub responses.credentialName
- the name of the credential that the permissions will apply topermissions
- a collection of Permission
spublic java.lang.String getCredentialName()
public java.util.List<Permission> getPermissions()
Permission
s.Permission
spublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object