public class OAuthContext extends Object
Constructor and Description |
---|
OAuthContext(UserSubject resourceOwnerSubject,
UserSubject clientSubject,
List<OAuthPermission> perms,
String tokenGrantType) |
Modifier and Type | Method and Description |
---|---|
String |
getClientId()
Returns the client which obtained the access token
|
UserSubject |
getClientSubject()
Gets the
UserSubject representing the client |
List<OAuthPermission> |
getPermissions()
Gets the list of the permissions assigned to the current access token
|
UserSubject |
getSubject()
Gets the
UserSubject representing the resource owner |
String |
getTokenAudience() |
Map<String,String> |
getTokenExtraProperties() |
String |
getTokenGrantType()
Returns the grant type which was used to obtain the access token
the client is using now during the current request
|
String |
getTokenIssuer() |
String |
getTokenKey()
Returns the access token the client is using now during the current request
|
String[] |
getTokenRequestParts() |
boolean |
isClientConfidential() |
void |
setClientConfidential(boolean isConfidential) |
void |
setClientId(String clientId)
Sets the client which obtained the access token
|
void |
setTokenAudience(String audience) |
void |
setTokenExtraProperties(Map<String,String> tokenExtraProperties) |
void |
setTokenIssuer(String tokenIssuer) |
void |
setTokenKey(String tokenKey)
Sets the access token the client is using now during the current request
|
void |
setTokenRequestParts(String[] tokenRequestParts) |
public OAuthContext(UserSubject resourceOwnerSubject, UserSubject clientSubject, List<OAuthPermission> perms, String tokenGrantType)
public UserSubject getSubject()
UserSubject
representing the resource ownerpublic UserSubject getClientSubject()
UserSubject
representing the clientpublic List<OAuthPermission> getPermissions()
public String getTokenGrantType()
public String getClientId()
public void setClientId(String clientId)
clientId
- public String getTokenKey()
public void setTokenKey(String tokenKey)
tokenKey
- public String getTokenAudience()
public void setTokenAudience(String audience)
public String[] getTokenRequestParts()
public void setTokenRequestParts(String[] tokenRequestParts)
public boolean isClientConfidential()
public void setClientConfidential(boolean isConfidential)
public String getTokenIssuer()
public void setTokenIssuer(String tokenIssuer)
Apache CXF