| Package | Description |
|---|---|
| org.apache.rahas | |
| org.apache.rahas.client | |
| org.apache.rahas.impl | |
| org.apache.rahas.impl.util |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleTokenStore.add(Token token) |
void |
TokenStorage.add(Token token)
Add the given token to the list.
|
org.apache.axiom.soap.SOAPEnvelope |
TokenCanceler.cancel(RahasData data)
Cancel the token specified in the request.
|
static org.apache.axiom.om.OMElement |
TrustUtil.createActAsElement(org.apache.axiom.om.OMElement parent,
int version,
org.apache.axiom.om.OMElement samlToken)
This method is used to create and add the "ActAs" element into a RST as per the wS-Trust 1.4 specification.
|
static org.apache.axiom.om.OMElement |
TrustUtil.createBinarySecretElement(int version,
org.apache.axiom.om.OMElement parent,
String type) |
static org.apache.axiom.om.OMElement |
TrustUtil.createCancelRequest(String tokenId,
int version) |
static org.apache.axiom.om.OMElement |
TrustUtil.createCancelTargetElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createClaims(int version,
org.apache.axiom.om.OMElement parent,
String dialect) |
static org.apache.axiom.om.OMElement |
TrustUtil.createComputedKeyAlgorithm(int version,
org.apache.axiom.om.OMElement parent,
String algoId) |
static org.apache.axiom.om.OMElement |
TrustUtil.createComputedKeyElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createEntropyElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createKeySizeElement(int version,
org.apache.axiom.om.OMElement parent,
int size) |
static org.apache.axiom.om.OMElement |
TrustUtil.createKeyTypeElement(int version,
org.apache.axiom.om.OMElement parent,
String type) |
static org.apache.axiom.om.OMElement |
TrustUtil.createLifetimeElement(int version,
org.apache.axiom.om.OMElement parent,
long ttl) |
static org.apache.axiom.om.OMElement |
TrustUtil.createLifetimeElement(int version,
org.apache.axiom.om.OMElement parent,
String created,
String expires) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRenewTargetElement(int version,
org.apache.axiom.om.OMElement parent,
org.apache.axiom.om.OMElement str) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestedAttachedRef(int version,
org.apache.axiom.om.OMElement parent,
String refUri,
String refValueType) |
static void |
TrustUtil.createRequestedAttachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
Create and add wst:AttachedReference element
|
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestedProofTokenElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestedSecurityTokenElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestedTokenCanceledElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestedUnattachedRef(int version,
org.apache.axiom.om.OMElement parent,
String refUri,
String refValueType) |
static void |
TrustUtil.createRequestedUnattachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
Create and add wst:UnattachedReference element
|
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestSecurityTokenElement(int version) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestSecurityTokenResponseCollectionElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestSecurityTokenResponseElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createRequestTypeElement(int version,
org.apache.axiom.om.OMElement parent,
String value) |
static org.apache.axiom.om.OMElement |
TrustUtil.createTokenTypeElement(int version,
org.apache.axiom.om.OMElement parent) |
static org.apache.axiom.om.OMElement |
TrustUtil.createValidateTargetElement(int version,
org.apache.axiom.om.OMElement parent,
org.apache.axiom.om.OMElement str) |
void |
TokenPersister.deleteToken(String tokenId)
Remove the token, given the token id.
|
protected byte[] |
TrustUtil.generateEphemeralKey(byte[] reqEnt,
byte[] respEnt,
String algo,
int keySize)
Create an ephemeral key
|
protected byte[] |
TrustUtil.generateEphemeralKey(int keySize)
Create an ephemeral key
|
static String |
TrustUtil.getActionValue(int version,
String action) |
Token[] |
SimpleTokenStore.getCancelledTokens() |
Token[] |
TokenStorage.getCancelledTokens()
Return the list of CANCELLED tokens
|
TokenCanceler |
TokenRequestDispatcherConfig.getDefaultCancelerInstance() |
TokenIssuer |
TokenRequestDispatcherConfig.getDefaultIssuerInstace() |
TokenRenewer |
TokenRequestDispatcherConfig.getDefaultRenewerInstance() |
TokenValidator |
TokenRequestDispatcherConfig.getDefaultValidatorInstance() |
Token[] |
SimpleTokenStore.getExpiredTokens() |
Token[] |
TokenStorage.getExpiredTokens()
Return the list of
EXPIRED tokens. |
TokenIssuer |
TokenRequestDispatcherConfig.getIssuer(String tokenType) |
Token[] |
SimpleTokenStore.getRenewedTokens() |
Token[] |
TokenStorage.getRenewedTokens()
Return the list of RENEWED tokens.
|
TokenRenewer |
TokenRequestDispatcherConfig.getRenewer(String tokenType) |
String |
TokenIssuer.getResponseAction(RahasData data)
Returns the
wsa:Action of the response. |
String |
TokenCanceler.getResponseAction(RahasData data)
Returns the
wsa:Action of the response. |
List<Token> |
SimpleTokenStore.getStorageTokens()
Get the tokens in memory to a list and return.
|
List<Token> |
TokenStorage.getStorageTokens()
Retrieves the tokens in volatile memory if any.
|
Token |
SimpleTokenStore.getToken(String id) |
Token |
TokenStorage.getToken(String id)
Returns the
Token of the given id |
String[] |
SimpleTokenStore.getTokenIdentifiers() |
String[] |
TokenStorage.getTokenIdentifiers()
Return the list of all token identifiers.
|
TokenValidator |
TokenRequestDispatcherConfig.getValidator(String tokenType) |
Token[] |
SimpleTokenStore.getValidTokens() |
Token[] |
TokenStorage.getValidTokens()
Return the list of ISSUED and RENEWED tokens.
|
static String |
TrustUtil.getWSTNamespace(int version) |
static String |
TrustUtil.getWSTNamespaceForRSTRequestTye(int version)
This method is intended to provide the correct RST Request type provided the WS-Trust version.
|
static int |
TrustUtil.getWSTVersion(String ns) |
org.apache.axiom.soap.SOAPEnvelope |
TokenRequestDispatcher.handle(org.apache.axis2.context.MessageContext inMsgCtx,
org.apache.axis2.context.MessageContext outMsgCtx)
Processes the incoming request and returns a SOAPEnvelope
|
void |
SimpleTokenStore.handlePersistence(List<?> persistingTokens) |
void |
TokenStorage.handlePersistence(List<?> persistingTokens)
Implements how persistence of volatile tokens should be handled
while managing concurrency issues.
|
void |
SimpleTokenStore.handlePersistenceOnShutdown() |
void |
TokenStorage.handlePersistenceOnShutdown()
Implements how volatile tokens should be persisted upon server shutdown.
|
org.apache.axiom.soap.SOAPEnvelope |
TokenIssuer.issue(RahasData data)
Create the response
soap:Envelope for the given issue
request. |
static TokenRequestDispatcherConfig |
TokenRequestDispatcherConfig.load(org.apache.axiom.om.OMElement configElem) |
static TokenRequestDispatcherConfig |
TokenRequestDispatcherConfig.load(String configFilePath) |
void |
TokenPersister.persistToken(Token token)
Persist a single token
|
void |
TokenPersister.persistTokens(Token[] retiredTokens)
Persist an array of tokens
|
protected void |
SimpleTokenStore.processTokenExpiry() |
void |
SimpleTokenStore.removeToken(String id) |
void |
TokenStorage.removeToken(String id)
Removes the given token from token storage.
|
org.apache.axiom.soap.SOAPEnvelope |
TokenRenewer.renew(RahasData data)
Renew the token specified in the given request.
|
Token |
TokenPersister.retrieveToken(String tokenId)
Read a token given it's id.
|
void |
TokenPersister.setConfiguration(AbstractIssuerConfig config)
Pass persister configuration to be set in the persister implementation.
|
void |
SimpleTokenStore.update(Token token) |
void |
TokenStorage.update(Token token)
Update an existing token.
|
void |
TokenPersister.updateToken(Token token)
Update the given token in persistence.
|
org.apache.axiom.soap.SOAPEnvelope |
TokenValidator.validate(RahasData data)
Validate the token specified in the given request.
|
| Constructor and Description |
|---|
EncryptedKeyToken(String id,
org.apache.axiom.om.OMElement tokenElem,
Date created,
Date expires) |
RahasData(org.apache.axis2.context.MessageContext inMessageContext)
Create a new RahasData instance and populate it with the information from
the request.
|
Token(String id,
org.apache.axiom.om.OMElement tokenElem,
Date created,
Date expires) |
Token(String id,
org.apache.axiom.om.OMElement tokenElem,
org.apache.axiom.om.OMElement lifetimeElem) |
TokenRequestDispatcher(org.apache.axiom.om.OMElement config) |
TokenRequestDispatcher(String configFilePath) |
TokenRequestDispatcher(TokenRequestDispatcherConfig config) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
STSClient.cancelToken(String tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy)
Cancel a given token
|
boolean |
STSClient.cancelToken(String issuerAddress,
String tokenId,
String action)
Deprecated.
|
org.apache.axiom.om.OMElement |
STSClient.createIssueRequest(String requestType,
String appliesTo)
Create the RST request.
|
boolean |
STSClient.renewToken(String tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy) |
boolean |
STSClient.renewToken(String tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
TokenStorage store)
Renews the token referenced by the token id, updates the token store
|
boolean |
STSClient.renewToken(String tokenId,
String tokenType,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
TokenStorage store) |
Token |
STSClient.requestSecurityToken(org.apache.neethi.Policy servicePolicy,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
String appliesTo) |
Token |
STSClient.requestSecurityToken(org.apache.neethi.Policy servicePolicy,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy,
String appliesTo,
org.apache.axis2.client.Options options) |
boolean |
STSClient.validateToken(String tokenId,
String issuerAddress,
org.apache.neethi.Policy issuerPolicy) |
| Constructor and Description |
|---|
STSClient(org.apache.axis2.context.ConfigurationContext configCtx) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.axiom.om.OMElement |
SAMLTokenRenewer.buildResponse(org.apache.axis2.context.MessageContext inMsgCtx,
RahasData data,
org.apache.axiom.soap.SOAPEnvelope env,
String tokenType)
create the RSTR element with the token type
|
org.apache.axiom.soap.SOAPEnvelope |
TokenCancelerImpl.cancel(RahasData data)
Cancel the token specified in the request.
|
protected void |
SAMLTokenIssuer.createAttachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
Create and add wst:AttachedReference element
|
protected org.opensaml.SAMLAssertion |
SAMLTokenIssuer.createAuthAssertion(Document doc,
String confMethod,
org.opensaml.SAMLNameIdentifier subjectNameId,
Element keyInfoContent,
SAMLTokenIssuerConfig config,
org.apache.ws.security.components.crypto.Crypto crypto,
Date notBefore,
Date notAfter,
RahasData data) |
protected org.opensaml.SAMLAssertion |
SAMLPassiveTokenIssuer.createAuthAssertion(Document doc,
String confMethod,
org.opensaml.SAMLNameIdentifier subjectNameId,
Element keyInfoContent,
SAMLTokenIssuerConfig config,
org.apache.ws.security.components.crypto.Crypto crypto,
Date notBefore,
Date notAfter,
String actAs) |
protected org.opensaml.saml2.core.Assertion |
SAML2TokenIssuer.createBearerAssersion(SAMLTokenIssuerConfig config,
Document doc,
org.apache.ws.security.components.crypto.Crypto crypto,
RahasData data)
Build SAML2.0 assertion as Bearer.
|
protected org.opensaml.SAMLAssertion |
SAMLTokenIssuer.createBearerAssertion(SAMLTokenIssuerConfig config,
Document doc,
org.apache.ws.security.components.crypto.Crypto crypto,
Date creationTime,
Date expirationTime,
RahasData data) |
protected org.opensaml.SAMLAssertion |
SAMLTokenIssuer.createHoKAssertion(SAMLTokenIssuerConfig config,
Document doc,
org.apache.ws.security.components.crypto.Crypto crypto,
Date creationTime,
Date expirationTime,
RahasData data) |
protected void |
SAMLTokenIssuer.createUnattachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
Create and add wst:UnattachedReference element
|
void |
FSBasedRetiredTokenPersister.deleteToken(String tokenId) |
protected byte[] |
SAMLTokenIssuer.generateEphemeralKey(int keySize)
Create an ephemeral key
|
String |
TokenCancelerImpl.getResponseAction(RahasData data)
Returns the
wsa:Action of the response. |
String |
SCTIssuer.getResponseAction(RahasData data) |
String |
SAMLTokenIssuer.getResponseAction(RahasData data)
Returns the
wsa:Action of the response. |
String |
SAML2TokenIssuer.getResponseAction(RahasData data) |
static byte[] |
TokenIssuerUtil.getSharedSecret(RahasData data,
int keyComputation,
int keySize) |
static TokenPersister |
TokenIssuerUtil.getTokenPersister(AbstractIssuerConfig config,
org.apache.axis2.context.MessageContext inMsgCtx)
Reads the TokenPersister configuration from TokenIssuerConfig and create TokenPersister.
|
static void |
TokenIssuerUtil.handleRequestedProofToken(RahasData data,
int wstVersion,
AbstractIssuerConfig config,
org.apache.axiom.om.OMElement rstrElem,
Token token,
Document doc) |
org.apache.axiom.soap.SOAPEnvelope |
SCTIssuer.issue(RahasData data)
Issue a
SecurityContextToken based on the wsse:Signature or
wsse:UsernameToken
This will support returning the SecurityContextToken with the following
types of wst:RequestedProof tokens:
xenc:EncryptedKey
wst:ComputedKey
wst:BinarySecret (for secure transport)
|
org.apache.axiom.soap.SOAPEnvelope |
SAMLTokenIssuer.issue(RahasData data) |
org.apache.axiom.soap.SOAPEnvelope |
SAML2TokenIssuer.issue(RahasData data) |
org.apache.axiom.om.OMElement |
SAMLPassiveTokenIssuer.issuePassiveRSTR(RahasData data) |
org.apache.axiom.om.OMElement |
SAML2PassiveTokenIssuer.issuePassiveRSTR(RahasData data) |
static TokenCancelerConfig |
TokenCancelerConfig.load(org.apache.axiom.om.OMElement elem) |
static SCTIssuerConfig |
SCTIssuerConfig.load(org.apache.axiom.om.OMElement elem) |
static TokenCancelerConfig |
TokenCancelerConfig.load(String configFilePath) |
static SCTIssuerConfig |
SCTIssuerConfig.load(String configFilePath) |
static void |
TokenIssuerUtil.manageTokenPersistenceSettings(AbstractIssuerConfig config,
org.apache.axis2.context.MessageContext inMsgCtx)
This initializes token persister and related config and set them in config context if they
are not already set.
|
void |
FSBasedRetiredTokenPersister.persistToken(Token token) |
void |
FSBasedRetiredTokenPersister.persistTokens(Token[] retiredTokens) |
org.apache.axiom.soap.SOAPEnvelope |
SAMLTokenRenewer.renew(RahasData data) |
org.apache.axiom.soap.SOAPEnvelope |
SAML2TokenRenewer.renew(RahasData data) |
Token |
FSBasedRetiredTokenPersister.retrieveToken(String tokenId) |
void |
SAMLPassiveTokenIssuer.setAudienceRestrictionCondition(String audienceRestriction) |
void |
SAML2PassiveTokenIssuer.setAudienceRestrictionCondition(String audienceRestriction) |
protected SAMLTokenIssuerConfig |
SAMLTokenRenewer.setConfig(org.apache.axis2.context.MessageContext inMsgCtx)
set the configuration for SAML 1.1 and 2.0 renewing
|
void |
FSBasedRetiredTokenPersister.setConfiguration(AbstractIssuerConfig config) |
void |
FSBasedRetiredTokenPersister.updateToken(Token token) |
org.apache.axiom.soap.SOAPEnvelope |
SAMLTokenValidator.validate(RahasData data)
Returns a SOAPEnvelope with the result of the validation.
|
| Constructor and Description |
|---|
SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem)
Create a SAMLTokenIssuer configuration using the give config element
|
SAMLTokenIssuerConfig(String configFilePath)
Create a SAMLTokenIssuer configuration with a config file picked from the
given location.
|
| Modifier and Type | Method and Description |
|---|---|
static Element |
SAML2Utils.getElementFromAssertion(org.opensaml.xml.XMLObject xmlObj) |
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.