public final class Actor extends Object
Modifier and Type | Method and Description |
---|---|
static Actor |
app(String appId)
Create an application identifier.
|
static Actor |
client(String clientId)
Create an OAuth2 client identifier.
|
static Actor |
client(String zoneId,
String clientId)
Create an OAuth2 client identifier.
|
boolean |
equals(Object o) |
ActorType |
getAuthType()
Get the type of the authorized entity.
|
String |
getIdentity()
Get the full identifier for the authorized entity, which is a combination of the
type and identity.
|
String |
getPrimaryIdentifier()
Get the identity of the authorized entity.
|
int |
hashCode() |
String |
toString() |
static Actor |
user(String userId)
Create a user identifier.
|
static Actor |
user(String zoneId,
String userId)
Create a user identifier.
|
public static Actor app(String appId)
appId
- the Cloud Foundry application GUIDpublic static Actor user(String userId)
userId
- the UAA user GUIDpublic static Actor user(String zoneId, String userId)
zoneId
- the UAA identity zone IDuserId
- the UAA user GUIDpublic static Actor client(String clientId)
clientId
- the UAA client IDpublic static Actor client(String zoneId, String clientId)
zoneId
- the UAA identity zone IDclientId
- the UAA client IDpublic ActorType getAuthType()
public String getPrimaryIdentifier()
public String getIdentity()