Class CredentialPermission
java.lang.Object
org.springframework.credhub.support.CredentialPermission
A
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.- Author:
- Scott Frederick
-
Constructor Summary
ConstructorDescriptionCredentialPermission
(CredentialName path, Permission permission) Create aCredentialPermission
from the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
Get the CredHub-assigned ID of the permission.getPath()
Get the name of the credential that the permission apply to.Get the collection ofPermission
s.int
hashCode()
toString()
-
Constructor Details
-
CredentialPermission
Create aCredentialPermission
from the provided parameters. Intended for internal use. Clients will getCredentialPermission
objects populated from CredHub responses.- Parameters:
path
- the path of the credential(s) that the permission will apply topermission
- a collection ofPermission
s
-
-
Method Details
-
getId
Get the CredHub-assigned ID of the permission.- Returns:
- the permission ID
-
getPath
Get the name of the credential that the permission apply to.- Returns:
- the credential name
-
getPermission
Get the collection ofPermission
s.- Returns:
- the collection of
Permission
s
-
equals
-
hashCode
public int hashCode() -
toString
-