public class CredentialPermission
extends java.lang.Object
Permission
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 |
---|
CredentialPermission(CredentialName path,
Permission permission)
Create a
CredentialPermission from the provided parameters. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
Get the CredHub-assigned ID of the permission.
|
java.lang.String |
getPath()
Get the name of the credential that the permission apply to.
|
Permission |
getPermission()
Get the collection of
Permission s. |
int |
hashCode() |
java.lang.String |
toString() |
public CredentialPermission(CredentialName path, Permission permission)
CredentialPermission
from the provided parameters. Intended for internal
use. Clients will get CredentialPermission
objects populated from
CredHub responses.path
- the path of the credential(s) that the permission will apply topermission
- a collection of Permission
spublic java.lang.String getId()
public java.lang.String getPath()
public Permission getPermission()
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