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