Class Actor
java.lang.Object
org.springframework.credhub.support.permissions.Actor
Identifies an entity that is authorized to perform operations on a CredHub credential.
- Author:
- Scott Frederick
-
Method Summary
Modifier and TypeMethodDescriptionstatic Actor
Create an application identifier.static Actor
Create an OAuth2 client identifier.static Actor
Create an OAuth2 client identifier.boolean
Get the type of the authorized entity.Get the full identifier for the authorized entity, which is a combination of the type and identity.Get the identity of the authorized entity.int
hashCode()
toString()
static Actor
Create a user identifier.static Actor
Create a user identifier.
-
Method Details
-
app
Create an application identifier. An application is identified by a GUID generated by Cloud Foundry when the application is created.- Parameters:
appId
- the Cloud Foundry application GUID- Returns:
- the created Actor
-
user
Create a user identifier. A user is identified by a GUID generated by UAA when a user account is created.- Parameters:
userId
- the UAA user GUID- Returns:
- the created Actor
-
user
Create a user identifier. A user is identified by a GUID generated by UAA when a user account is created and the ID of the identity zone the user was created in.- Parameters:
zoneId
- the UAA identity zone IDuserId
- the UAA user GUID- Returns:
- the created Actor
-
client
Create an OAuth2 client identifier. A client identified by user-provided identifier.- Parameters:
clientId
- the UAA client ID- Returns:
- the created Actor
-
client
Create an OAuth2 client identifier. A client identified by user-provided identifier and the ID of the identity zone the client was created in.- Parameters:
zoneId
- the UAA identity zone IDclientId
- the UAA client ID- Returns:
- the created Actor
-
getAuthType
Get the type of the authorized entity.- Returns:
- the entity type
-
getPrimaryIdentifier
Get the identity of the authorized entity.- Returns:
- the identifier
-
getIdentity
Get the full identifier for the authorized entity, which is a combination of the type and identity.- Returns:
- the full identifier
-
equals
-
hashCode
public int hashCode() -
toString
-