public class SAMLTokenIssuer extends Object implements TokenIssuer
| Modifier and Type | Field and Description |
|---|---|
protected String |
audienceRestriction |
protected org.apache.axiom.om.OMElement |
configElement |
protected String |
configFile |
protected String |
configParamName |
| Constructor and Description |
|---|
SAMLTokenIssuer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createAttachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
Create and add wst:AttachedReference element
|
protected org.opensaml.SAMLAssertion |
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 |
createBearerAssertion(SAMLTokenIssuerConfig config,
Document doc,
org.apache.ws.security.components.crypto.Crypto crypto,
Date creationTime,
Date expirationTime,
RahasData data) |
protected org.opensaml.SAMLAssertion |
createHoKAssertion(SAMLTokenIssuerConfig config,
Document doc,
org.apache.ws.security.components.crypto.Crypto crypto,
Date creationTime,
Date expirationTime,
RahasData data) |
protected void |
createUnattachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
Create and add wst:UnattachedReference element
|
protected byte[] |
generateEphemeralKey(int keySize)
Create an ephemeral key
|
String |
getResponseAction(RahasData data)
Returns the
wsa:Action of the response. |
org.apache.axiom.soap.SOAPEnvelope |
issue(RahasData data)
Create the response
soap:Envelope for the given issue
request. |
void |
setConfigurationElement(org.apache.axiom.om.OMElement configElement)
Set the configuration element of this TokenIssuer.
|
void |
setConfigurationFile(String configFile)
Set the configuration file of this TokenIssuer.
|
void |
setConfigurationParamName(String configParamName)
Set the name of the configuration parameter.
|
protected String configParamName
protected org.apache.axiom.om.OMElement configElement
protected String configFile
protected String audienceRestriction
public org.apache.axiom.soap.SOAPEnvelope issue(RahasData data) throws TrustException
TokenIssuersoap:Envelope for the given issue
request.issue in interface TokenIssuerdata - A populated RahasData instancesoap:Envelope for the given issue
request.TrustExceptionprotected void createAttachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
throws TrustException
rstrElem - wst:RequestSecurityToken elementid - Token identifierTrustExceptionprotected void createUnattachedRef(org.apache.axiom.om.OMElement rstrElem,
String id,
int version)
throws TrustException
rstrElem - wst:RequestSecurityToken elementid - Token identifierTrustExceptionprotected org.opensaml.SAMLAssertion createBearerAssertion(SAMLTokenIssuerConfig config, Document doc, org.apache.ws.security.components.crypto.Crypto crypto, Date creationTime, Date expirationTime, RahasData data) throws TrustException
TrustExceptionprotected org.opensaml.SAMLAssertion createHoKAssertion(SAMLTokenIssuerConfig config, Document doc, org.apache.ws.security.components.crypto.Crypto crypto, Date creationTime, Date expirationTime, RahasData data) throws TrustException
TrustExceptionprotected org.opensaml.SAMLAssertion 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) throws TrustException
doc - confMethod - subjectNameId - keyInfoContent - config - crypto - notBefore - notAfter - TrustExceptionpublic String getResponseAction(RahasData data) throws TrustException
wsa:Action of the response.getResponseAction in interface TokenIssuerdata - A populated RahasData instancewsa:Action of the responseTrustExceptionprotected byte[] generateEphemeralKey(int keySize)
throws TrustException
TrustExceptionpublic void setConfigurationFile(String configFile)
setConfigurationFile in interface TokenIssuerpublic void setConfigurationElement(org.apache.axiom.om.OMElement configElement)
setConfigurationElement in interface TokenIssuerconfigElement - OMElement representing the configurationpublic void setConfigurationParamName(String configParamName)
org.apache.axis2.description.Parameter object available in
the via the messageContext when the TokenIssuer is called.setConfigurationParamName in interface TokenIssuerParameterCopyright © 2005–2019 Apache Software Foundation. All rights reserved.