Class Permission
java.lang.Object
org.springframework.credhub.support.permissions.Permission
Permissions applied to a credential in CredHub. If provided when a credential is
written, these values will control what actors can access update or retrieve the
credential.
Objects of this type are constructed by the application and passed as part of a
CredentialRequest
.- Author:
- Scott Frederick
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder that provides a fluent API for constructingPermission
instances. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a builder that provides a fluent API for providing the values required to construct aPermission
.boolean
getActor()
Get the ID of the entity that will be allowed to access the credential.Get the set of operations that the actor will be allowed to perform on the credential.int
hashCode()
toString()
-
Method Details
-
getActor
Get the ID of the entity that will be allowed to access the credential.- Returns:
- the ID
-
getOperations
Get the set of operations that the actor will be allowed to perform on the credential.- Returns:
- the operations
-
builder
Create a builder that provides a fluent API for providing the values required to construct aPermission
.- Returns:
- a builder
-
equals
-
hashCode
public int hashCode() -
toString
-