Class CredentialPermissions
java.lang.Object
org.springframework.credhub.support.CredentialPermissions
A collection of
Permission
s 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
ConstructorDescriptionCredentialPermissions
(CredentialName credentialName, Permission... permissions) Create aCredentialPermissions
from the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the name of the credential that the permissions apply to.Get the collection ofPermission
s.int
hashCode()
toString()
-
Constructor Details
-
CredentialPermissions
Create aCredentialPermissions
from the provided parameters. Intended for internal use. Clients will getCredentialPermissions
objects populated from CredHub responses.- Parameters:
credentialName
- the name of the credential that the permissions will apply topermissions
- a collection ofPermission
s
-
-
Method Details
-
getCredentialName
Get the name of the credential that the permissions apply to.- Returns:
- the credential name
-
getPermissions
Get the collection ofPermission
s.- Returns:
- the collection of
Permission
s
-
equals
-
hashCode
public int hashCode() -
toString
-