Uses of Class
org.apache.rahas.TrustException

Packages that use TrustException
org.apache.rahas   
org.apache.rahas.client   
org.apache.rahas.impl   
org.apache.rahas.impl.util   
org.apache.rampart.saml   
org.apache.rampart.util   
 

Uses of TrustException in org.apache.rahas
 

Methods in org.apache.rahas that throw TrustException
 void TokenStorage.add(Token token)
          Add the given token to the list.
 void SimpleTokenStore.add(Token token)
           
 org.apache.axiom.soap.SOAPEnvelope TokenCanceler.cancel(RahasData data)
          Cancel the token specified in the request.
static org.apache.axiom.om.OMElement TrustUtil.createBinarySecretElement(int version, org.apache.axiom.om.OMElement parent, java.lang.String type)
           
static org.apache.axiom.om.OMElement TrustUtil.createCancelRequest(java.lang.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, java.lang.String dialect)
           
static org.apache.axiom.om.OMElement TrustUtil.createComputedKeyAlgorithm(int version, org.apache.axiom.om.OMElement parent, java.lang.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, java.lang.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, java.lang.String created, java.lang.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, java.lang.String refUri, java.lang.String refValueType)
           
static void TrustUtil.createRequestedAttachedRef(org.apache.axiom.om.OMElement rstrElem, java.lang.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, java.lang.String refUri, java.lang.String refValueType)
           
static void TrustUtil.createRequestedUnattachedRef(org.apache.axiom.om.OMElement rstrElem, java.lang.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, java.lang.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)
           
protected  byte[] TrustUtil.generateEphemeralKey(byte[] reqEnt, byte[] respEnt, java.lang.String algo, int keySize)
          Create an ephemeral key
protected  byte[] TrustUtil.generateEphemeralKey(int keySize)
          Create an ephemeral key
static java.lang.String TrustUtil.getActionValue(int version, java.lang.String action)
           
 Token[] TokenStorage.getCancelledTokens()
          Return the list of CANCELLED tokens
 Token[] SimpleTokenStore.getCancelledTokens()
           
 TokenCanceler TokenRequestDispatcherConfig.getDefaultCancelerInstance()
           
 TokenIssuer TokenRequestDispatcherConfig.getDefaultIssuerInstace()
           
 TokenRenewer TokenRequestDispatcherConfig.getDefaultRenewerInstance()
           
 TokenValidator TokenRequestDispatcherConfig.getDefaultValidatorInstance()
           
 Token[] TokenStorage.getExpiredTokens()
          Return the list of EXPIRED tokens.
 Token[] SimpleTokenStore.getExpiredTokens()
           
 TokenIssuer TokenRequestDispatcherConfig.getIssuer(java.lang.String tokenType)
           
 Token[] TokenStorage.getRenewedTokens()
          Return the list of RENEWED tokens.
 Token[] SimpleTokenStore.getRenewedTokens()
           
 TokenRenewer TokenRequestDispatcherConfig.getRenewer(java.lang.String tokenType)
           
 java.lang.String TokenIssuer.getResponseAction(RahasData data)
          Returns the wsa:Action of the response.
 java.lang.String TokenCanceler.getResponseAction(RahasData data)
          Returns the wsa:Action of the response.
 Token TokenStorage.getToken(java.lang.String id)
          Returns the Token of the given id
 Token SimpleTokenStore.getToken(java.lang.String id)
           
 java.lang.String[] TokenStorage.getTokenIdentifiers()
          Return the list of all token identifiers.
 java.lang.String[] SimpleTokenStore.getTokenIdentifiers()
           
 TokenValidator TokenRequestDispatcherConfig.getValidator(java.lang.String tokenType)
           
 Token[] TokenStorage.getValidTokens()
          Return the list of ISSUED and RENEWED tokens.
 Token[] SimpleTokenStore.getValidTokens()
           
static java.lang.String TrustUtil.getWSTNamespace(int version)
           
static int TrustUtil.getWSTVersion(java.lang.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
 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(java.lang.String configFilePath)
           
protected  void SimpleTokenStore.processTokenExpiry()
           
 org.apache.axiom.soap.SOAPEnvelope TokenRenewer.renew(RahasData data)
          Renew the token specified in the given request.
 void TokenStorage.update(Token token)
          Update an existing token.
 void SimpleTokenStore.update(Token token)
           
 org.apache.axiom.soap.SOAPEnvelope TokenValidator.validate(RahasData data)
          Validate the token specified in the given request.
 

Constructors in org.apache.rahas that throw TrustException
EncryptedKeyToken(java.lang.String id, org.apache.axiom.om.OMElement tokenElem, java.util.Date created, java.util.Date expires)
           
RahasData(org.apache.axis2.context.MessageContext inMessageContext)
          Create a new RahasData instance and populate it with the information from the request.
Token(java.lang.String id, org.apache.axiom.om.OMElement tokenElem, java.util.Date created, java.util.Date expires)
           
Token(java.lang.String id, org.apache.axiom.om.OMElement tokenElem, org.apache.axiom.om.OMElement lifetimeElem)
           
TokenRequestDispatcher(org.apache.axiom.om.OMElement config)
           
TokenRequestDispatcher(java.lang.String configFilePath)
           
TokenRequestDispatcher(TokenRequestDispatcherConfig config)
           
 

Uses of TrustException in org.apache.rahas.client
 

Methods in org.apache.rahas.client that throw TrustException
 boolean STSClient.cancelToken(java.lang.String issuerAddress, java.lang.String tokenId, java.lang.String action)
          Cancel a particular security token
 boolean STSClient.renewToken(java.lang.String tokenId, java.lang.String issuerAddress, org.apache.neethi.Policy issuerPolicy)
           
 boolean STSClient.renewToken(java.lang.String tokenId, java.lang.String issuerAddress, org.apache.neethi.Policy issuerPolicy, TokenStorage store)
          Renews the token referenced by the token id, updates the token store
 Token STSClient.requestSecurityToken(org.apache.neethi.Policy servicePolicy, java.lang.String issuerAddress, org.apache.neethi.Policy issuerPolicy, java.lang.String appliesTo)
           
 boolean STSClient.validateToken(java.lang.String tokenId, java.lang.String issuerAddress, org.apache.neethi.Policy issuerPolicy)
           
 

Constructors in org.apache.rahas.client that throw TrustException
STSClient(org.apache.axis2.context.ConfigurationContext configCtx)
           
 

Uses of TrustException in org.apache.rahas.impl
 

Methods in org.apache.rahas.impl that throw TrustException
 org.apache.axiom.soap.SOAPEnvelope TokenCancelerImpl.cancel(RahasData data)
          Cancel the token specified in the request.
protected  byte[] SAMLTokenIssuer.generateEphemeralKey(int keySize)
          Create an ephemeral key
 java.lang.String TokenCancelerImpl.getResponseAction(RahasData data)
          Returns the wsa:Action of the response.
 java.lang.String SCTIssuer.getResponseAction(RahasData data)
           
 java.lang.String SAMLTokenIssuer.getResponseAction(RahasData data)
          Returns the wsa:Action of the response.
 java.lang.String SAML2TokenIssuer.getResponseAction(RahasData data)
           
 java.security.cert.X509Certificate SAMLTokenIssuerConfig.getServiceCert(org.apache.ws.security.components.crypto.Crypto crypto, java.lang.String serviceAddress)
          Uses the wst:AppliesTo to figure out the certificate to encrypt the secret in the SAML token
static byte[] TokenIssuerUtil.getSharedSecret(RahasData data, int keyComputation, int keySize)
           
static void TokenIssuerUtil.handleRequestedProofToken(RahasData data, int wstVersion, AbstractIssuerConfig config, org.apache.axiom.om.OMElement rstrElem, Token token, org.w3c.dom.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)
           
static TokenCancelerConfig TokenCancelerConfig.load(org.apache.axiom.om.OMElement elem)
           
static SCTIssuerConfig SCTIssuerConfig.load(org.apache.axiom.om.OMElement elem)
           
static TokenCancelerConfig TokenCancelerConfig.load(java.lang.String configFilePath)
           
static SCTIssuerConfig SCTIssuerConfig.load(java.lang.String configFilePath)
           
 org.apache.axiom.soap.SOAPEnvelope SAMLTokenRenewer.renew(RahasData data)
           
 org.apache.axiom.soap.SOAPEnvelope SAMLTokenValidator.validate(RahasData data)
          Returns a SOAPEnvelope with the result of the validation.
 

Constructors in org.apache.rahas.impl that throw TrustException
SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem)
          Create a SAMLTokenIssuer configuration using the give config element
SAMLTokenIssuerConfig(java.lang.String configFilePath)
          Create a SAMLTokenIssuer configuration with a config file picked from the given location.
 

Uses of TrustException in org.apache.rahas.impl.util
 

Methods in org.apache.rahas.impl.util that throw TrustException
static org.opensaml.xml.XMLObject SAMLUtils.buildXMLObject(javax.xml.namespace.QName objectQName)
          Builds the requested XMLObject.
static org.opensaml.saml1.core.Assertion SAMLUtils.createAssertion(java.lang.String issuerName, org.joda.time.DateTime notBefore, org.joda.time.DateTime notOnOrAfter, java.util.List<org.opensaml.saml1.core.Statement> statements)
          This method creates the final SAML assertion.
static org.opensaml.saml1.core.Attribute SAMLUtils.createAttribute(java.lang.String name, java.lang.String namespace, java.lang.String value)
          Creates a SAML attribute similar to following, gold
static org.opensaml.saml1.core.AttributeStatement SAMLUtils.createAttributeStatement(org.opensaml.saml1.core.Subject subject, java.util.List<org.opensaml.saml1.core.Attribute> attributeList)
          Creates an attribute statement.
static org.opensaml.saml1.core.AuthenticationStatement SAMLUtils.createAuthenticationStatement(org.opensaml.saml1.core.Subject subject, java.lang.String authenticationMethod, org.joda.time.DateTime authenticationInstant)
          Creates an AuthenticationStatement.
static org.opensaml.saml1.core.Conditions SAMLUtils.createConditions(org.joda.time.DateTime notBefore, org.joda.time.DateTime notOnOrAfter)
          Creates Conditions object.
static org.opensaml.xml.signature.KeyInfo SAMLUtils.createKeyInfo()
          Creates a KeyInfo object
static org.opensaml.xml.signature.KeyInfo SAMLUtils.createKeyInfo(org.opensaml.xml.encryption.EncryptedKey encryptedKey)
          Creates a KeyInfo element given EncryptedKey.
static org.opensaml.xml.signature.KeyInfo SAMLUtils.createKeyInfo(org.opensaml.xml.signature.X509Data x509Data)
          Creates a KeyInfo element given EncryptedKey.
static org.opensaml.saml1.core.NameIdentifier SAMLUtils.createNamedIdentifier(java.lang.String principalName, java.lang.String format)
          Create named identifier.
static org.opensaml.saml1.core.Subject SAMLUtils.createSubject(org.opensaml.saml1.core.NameIdentifier nameIdentifier, java.lang.String confirmationMethod, org.opensaml.xml.signature.KeyInfo keyInfoContent)
          Creates an opensaml Subject representation.
static org.opensaml.saml1.core.SubjectConfirmation SAMLUtils.createSubjectConfirmation(java.lang.String confirmationMethod, org.opensaml.xml.signature.KeyInfo keyInfoContent)
          Creates opensaml SubjectConfirmation representation.
static org.opensaml.saml1.core.ConfirmationMethod SAMLUtils.createSubjectConfirmationMethod(java.lang.String confirmationMethod)
          Creates the subject confirmation method.
static org.opensaml.xml.signature.KeyInfo SAMLUtils.getCertificateBasedKeyInfo(java.security.cert.X509Certificate certificate)
          Creates the certificate based KeyInfo object.
static java.security.cert.X509Certificate CommonUtil.getCertificateByAlias(org.apache.ws.security.components.crypto.Crypto crypto, java.lang.String alias)
          Gets the certificates chain by alias.
static java.security.cert.X509Certificate[] CommonUtil.getCertificatesByAlias(org.apache.ws.security.components.crypto.Crypto crypto, java.lang.String alias)
          Gets the certificates chain by alias.
static org.apache.ws.security.components.crypto.Crypto CommonUtil.getCrypto(java.util.Properties properties, java.lang.ClassLoader classLoader)
          Constructs crypto configuration based on the given properties.
static org.apache.ws.security.components.crypto.Crypto CommonUtil.getCrypto(java.lang.String propertiesFile, java.lang.ClassLoader classLoader)
          Constructs crypto configuration based on the given properties.
static org.w3c.dom.Element SAML2Utils.getElementFromAssertion(org.opensaml.xml.XMLObject xmlObj)
           
static org.w3c.dom.Document CommonUtil.getOMDOMDocument()
          This method creates a DOM compatible Axiom document.
static SAML2KeyInfo SAML2Utils.getSAML2KeyInfo(org.w3c.dom.Element elem, org.apache.ws.security.components.crypto.Crypto crypto, javax.security.auth.callback.CallbackHandler cb)
          Extract certificates or the key available in the SAMLAssertion
static org.opensaml.xml.signature.KeyInfo SAMLUtils.getSymmetricKeyBasedKeyInfo(org.w3c.dom.Document doc, RahasData data, java.security.cert.X509Certificate serviceCert, int keySize, org.apache.ws.security.components.crypto.Crypto crypto, int keyComputation)
          This method creates KeyInfo element of an assertion.
static void SAMLUtils.signAssertion(org.opensaml.saml1.core.Assertion assertion, org.apache.ws.security.components.crypto.Crypto crypto, java.lang.String issuerKeyAlias, java.lang.String issuerKeyPassword)
          Signs the SAML assertion.
 

Uses of TrustException in org.apache.rampart.saml
 

Methods in org.apache.rampart.saml that throw TrustException
abstract  org.apache.axiom.om.OMElement SAMLAssertionHandler.getAssertionElement()
          Gets the assertion element as an Axiom OMElement.
 org.apache.axiom.om.OMElement SAML2AssertionHandler.getAssertionElement()
           
 org.apache.axiom.om.OMElement SAML1AssertionHandler.getAssertionElement()
           
 

Uses of TrustException in org.apache.rampart.util
 

Methods in org.apache.rampart.util that throw TrustException
static java.lang.String RampartUtil.getSecConvToken(RampartMessageData rmd, org.apache.ws.secpolicy.model.SecureConversationToken secConvTok)
          Obtain a security context token.