public class RESTSecurityTokenServiceImpl extends SecurityTokenServiceImpl implements RESTSecurityTokenService
RESTSecurityTokenService.Action
Modifier and Type | Field and Description |
---|---|
static Map<String,String> |
DEFAULT_CLAIM_TYPE_MAP |
static Map<String,String> |
DEFAULT_TOKEN_TYPE_MAP |
Constructor and Description |
---|
RESTSecurityTokenServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
encodeToken(String assertion) |
Map<String,String> |
getClaimTypeMap() |
String |
getDefaultKeyType() |
javax.ws.rs.core.Response |
getJSONToken(String tokenType,
String keyType,
List<String> requestedClaims,
String appliesTo) |
javax.ws.rs.core.Response |
getKeyExchangeToken(RequestSecurityTokenType request) |
protected Map<String,Object> |
getMessageContext() |
javax.ws.rs.core.Response |
getPlainToken(String tokenType,
String keyType,
List<String> requestedClaims,
String appliesTo) |
protected Principal |
getPrincipal() |
javax.ws.rs.core.Response |
getToken(RESTSecurityTokenService.Action action,
RequestSecurityTokenType request) |
Map<String,String> |
getTokenTypeMap() |
javax.ws.rs.core.Response |
getXMLToken(String tokenType,
String keyType,
List<String> requestedClaims,
String appliesTo,
boolean wstrustResponse) |
boolean |
isRequestClaimsOptional() |
javax.ws.rs.core.Response |
removeToken(RequestSecurityTokenType request)
Same as
RESTSecurityTokenService.getToken(Action, RequestSecurityTokenType) with 'cancel' action. |
void |
setClaimTypeMap(Map<String,String> claimTypeMap) |
void |
setDefaultKeyType(String defaultKeyType) |
void |
setRequestClaimsOptional(boolean requestClaimsOptional) |
void |
setTokenTypeMap(Map<String,String> tokenTypeMap) |
void |
setUseDeflateEncoding(boolean deflate) |
cancel, issue, issueSingle, keyExchangeToken, renew, requestCollection, setCancelOperation, setIssueOperation, setIssueSingleOperation, setKeyExchangeTokenOperation, setRenewOperation, setRequestCollectionOperation, setValidateOperation, validate
public javax.ws.rs.core.Response getXMLToken(String tokenType, String keyType, List<String> requestedClaims, String appliesTo, boolean wstrustResponse)
getXMLToken
in interface RESTSecurityTokenService
public javax.ws.rs.core.Response getJSONToken(String tokenType, String keyType, List<String> requestedClaims, String appliesTo)
getJSONToken
in interface RESTSecurityTokenService
public javax.ws.rs.core.Response getPlainToken(String tokenType, String keyType, List<String> requestedClaims, String appliesTo)
getPlainToken
in interface RESTSecurityTokenService
public javax.ws.rs.core.Response getToken(RESTSecurityTokenService.Action action, RequestSecurityTokenType request)
getToken
in interface RESTSecurityTokenService
public javax.ws.rs.core.Response removeToken(RequestSecurityTokenType request)
RESTSecurityTokenService
RESTSecurityTokenService.getToken(Action, RequestSecurityTokenType)
with 'cancel' action.removeToken
in interface RESTSecurityTokenService
public javax.ws.rs.core.Response getKeyExchangeToken(RequestSecurityTokenType request)
getKeyExchangeToken
in interface RESTSecurityTokenService
public String getDefaultKeyType()
public void setDefaultKeyType(String defaultKeyType)
public boolean isRequestClaimsOptional()
public void setRequestClaimsOptional(boolean requestClaimsOptional)
protected Principal getPrincipal()
getPrincipal
in class SecurityTokenServiceImpl
protected Map<String,Object> getMessageContext()
getMessageContext
in class SecurityTokenServiceImpl
public void setUseDeflateEncoding(boolean deflate)
protected String encodeToken(String assertion) throws Base64Exception
Base64Exception
Apache CXF