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
ConstructorsConstructorDescriptionCredentialPermission(CredentialName path, Permission permission) Create aCredentialPermissionfrom the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Get the CredHub-assigned ID of the permission.getPath()Get the name of the credential that the permission apply to.Get the collection ofPermissions.inthashCode()toString()
-
Constructor Details
-
CredentialPermission
Create aCredentialPermissionfrom the provided parameters. Intended for internal use. Clients will getCredentialPermissionobjects populated from CredHub responses.- Parameters:
path- the path of the credential(s) that the permission will apply topermission- a collection ofPermissions
-
-
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 ofPermissions.- Returns:
- the collection of
Permissions
-
equals
-
hashCode
public int hashCode() -
toString
-