public class CredentialPermission extends 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(Object o) |
String |
getId()
Get the CredHub-assigned ID of the permission.
|
String |
getPath()
Get the name of the credential that the permission apply to.
|
Permission |
getPermission()
Get the collection of
Permission s. |
int |
hashCode() |
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 String getId()
public String getPath()
public Permission getPermission()
Permission
s.Permission
s