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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder that provides a fluent API for constructingPermissioninstances. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Create a builder that provides a fluent API for providing the values required to construct aPermission.boolean@Nullable ActorgetActor()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.inthashCode()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
-