Uses of Class
org.apache.rahas.TrustException
Packages that use TrustException
Package
Description
-
Uses of TrustException in org.apache.rahas
Methods in org.apache.rahas that throw TrustExceptionModifier and TypeMethodDescriptionvoidvoidAdd the given token to the list.org.apache.axiom.soap.SOAPEnvelopeCancel the token specified in the request.static org.apache.axiom.om.OMElementTrustUtil.createBinarySecretElement(int version, org.apache.axiom.om.OMElement parent, String type) static org.apache.axiom.om.OMElementTrustUtil.createCancelRequest(String tokenId, int version) static org.apache.axiom.om.OMElementTrustUtil.createCancelTargetElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createClaims(int version, org.apache.axiom.om.OMElement parent, String dialect) static org.apache.axiom.om.OMElementTrustUtil.createComputedKeyAlgorithm(int version, org.apache.axiom.om.OMElement parent, String algoId) static org.apache.axiom.om.OMElementTrustUtil.createComputedKeyElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createEntropyElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createKeySizeElement(int version, org.apache.axiom.om.OMElement parent, int size) static org.apache.axiom.om.OMElementTrustUtil.createKeyTypeElement(int version, org.apache.axiom.om.OMElement parent, String type) static org.apache.axiom.om.OMElementTrustUtil.createLifetimeElement(int version, org.apache.axiom.om.OMElement parent, long ttl) static org.apache.axiom.om.OMElementTrustUtil.createLifetimeElement(int version, org.apache.axiom.om.OMElement parent, String created, String expires) static org.apache.axiom.om.OMElementTrustUtil.createRenewTargetElement(int version, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMElement str) static org.apache.axiom.om.OMElementTrustUtil.createRequestedAttachedRef(int version, org.apache.axiom.om.OMElement parent, String refUri, String refValueType) static voidTrustUtil.createRequestedAttachedRef(org.apache.axiom.om.OMElement rstrElem, String id, int version) Create and add wst:AttachedReference elementstatic org.apache.axiom.om.OMElementTrustUtil.createRequestedProofTokenElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createRequestedSecurityTokenElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createRequestedTokenCanceledElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createRequestedUnattachedRef(int version, org.apache.axiom.om.OMElement parent, String refUri, String refValueType) static voidTrustUtil.createRequestedUnattachedRef(org.apache.axiom.om.OMElement rstrElem, String id, int version) Create and add wst:UnattachedReference elementstatic org.apache.axiom.om.OMElementTrustUtil.createRequestSecurityTokenElement(int version) static org.apache.axiom.om.OMElementTrustUtil.createRequestSecurityTokenResponseCollectionElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createRequestSecurityTokenResponseElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createRequestTypeElement(int version, org.apache.axiom.om.OMElement parent, String value) static org.apache.axiom.om.OMElementTrustUtil.createTokenTypeElement(int version, org.apache.axiom.om.OMElement parent) static org.apache.axiom.om.OMElementTrustUtil.createValidateTargetElement(int version, org.apache.axiom.om.OMElement parent, org.apache.axiom.om.OMElement str) protected byte[]TrustUtil.generateEphemeralKey(byte[] reqEnt, byte[] respEnt, String algo, int keySize) Create an ephemeral keyprotected byte[]TrustUtil.generateEphemeralKey(int keySize) Create an ephemeral keystatic StringTrustUtil.getActionValue(int version, String action) Token[]SimpleTokenStore.getCancelledTokens()Token[]TokenStorage.getCancelledTokens()Return the list of CANCELLED tokensTokenRequestDispatcherConfig.getDefaultCancelerInstance()TokenRequestDispatcherConfig.getDefaultIssuerInstace()TokenRequestDispatcherConfig.getDefaultRenewerInstance()TokenRequestDispatcherConfig.getDefaultValidatorInstance()Token[]SimpleTokenStore.getExpiredTokens()Token[]TokenStorage.getExpiredTokens()Return the list ofEXPIREDtokens.Token[]SimpleTokenStore.getRenewedTokens()Token[]TokenStorage.getRenewedTokens()Return the list of RENEWED tokens.TokenRequestDispatcherConfig.getRenewer(String tokenType) TokenCanceler.getResponseAction(RahasData data) Returns thewsa:Actionof the response.TokenIssuer.getResponseAction(RahasData data) Returns thewsa:Actionof the response.Returns theTokenof the given idString[]SimpleTokenStore.getTokenIdentifiers()String[]TokenStorage.getTokenIdentifiers()Return the list of all token identifiers.TokenRequestDispatcherConfig.getValidator(String tokenType) Token[]SimpleTokenStore.getValidTokens()Token[]TokenStorage.getValidTokens()Return the list of ISSUED and RENEWED tokens.static StringTrustUtil.getWSTNamespace(int version) static intTrustUtil.getWSTVersion(String ns) org.apache.axiom.soap.SOAPEnvelopeTokenRequestDispatcher.handle(org.apache.axis2.context.MessageContext inMsgCtx, org.apache.axis2.context.MessageContext outMsgCtx) Processes the incoming request and returns a SOAPEnvelopeorg.apache.axiom.soap.SOAPEnvelopeCreate the responsesoap:Envelopefor the given issue request.static TokenRequestDispatcherConfigstatic TokenRequestDispatcherConfigTokenRequestDispatcherConfig.load(org.apache.axiom.om.OMElement configElem) protected voidSimpleTokenStore.processTokenExpiry(Token token) org.apache.axiom.soap.SOAPEnvelopeRenew the token specified in the given request.voidvoidUpdate an existing token.org.apache.axiom.soap.SOAPEnvelopeValidate the token specified in the given request.Constructors in org.apache.rahas that throw TrustExceptionModifierConstructorDescriptionEncryptedKeyToken(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, org.apache.axiom.om.OMElement lifetimeElem) TokenRequestDispatcher(String configFilePath) TokenRequestDispatcher(org.apache.axiom.om.OMElement config) -
Uses of TrustException in org.apache.rahas.client
Methods in org.apache.rahas.client that throw TrustExceptionModifier and TypeMethodDescriptionbooleanSTSClient.cancelToken(String issuerAddress, String tokenId, String action) Cancel a particular security tokenprotected org.apache.axiom.om.OMElementSTSClient.createIssueRequest(String appliesTo) This creates a request security token (RST) message.protected TokenSTSClient.processIssueResponse(int version, org.apache.axiom.om.OMElement result, String issuerAddress) Processes the response from Token issuer.booleanSTSClient.renewToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy) booleanSTSClient.renewToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy, TokenStorage store) Renews the token referenced by the token id, updates the token storeSTSClient.requestSecurityToken(org.apache.neethi.Policy servicePolicy, String issuerAddress, org.apache.neethi.Policy issuerPolicy, String appliesTo) booleanSTSClient.validateToken(String tokenId, String issuerAddress, org.apache.neethi.Policy issuerPolicy) Constructors in org.apache.rahas.client that throw TrustException -
Uses of TrustException in org.apache.rahas.impl
Methods in org.apache.rahas.impl that throw TrustExceptionModifier and TypeMethodDescriptionprotected org.opensaml.saml.saml2.core.AssertionSAML2TokenIssuer.buildAssertion(Document doc, org.apache.wss4j.common.crypto.Crypto crypto, RahasData data) This methods builds the SAML2 assertion.org.apache.axiom.soap.SOAPEnvelopeCancel the token specified in the request.protected org.opensaml.saml.saml2.core.AttributeStatementSAML2TokenIssuer.createAttributeStatement(RahasData data) This method creates an AttributeStatement.protected org.opensaml.saml.saml2.core.AuthnStatementSAML2TokenIssuer.createAuthenticationStatement(RahasData data) This method creates an authentication statement.protected org.opensaml.xmlsec.signature.KeyInfoSAML2TokenIssuer.createKeyInfo(Document doc, org.apache.wss4j.common.crypto.Crypto crypto, RahasData data) This method creates the KeyInfo relevant for the assertion.protected org.apache.axiom.soap.SOAPEnvelopeSAML2TokenIssuer.createRequestSecurityTokenResponse(RahasData rahasData, org.opensaml.saml.saml2.core.Assertion assertion, org.apache.axiom.soap.SOAPEnvelope soapEnvelope) This method prepares the final response.protected org.opensaml.saml.saml2.core.SubjectSAML2TokenIssuer.createSubjectWithBearerSubjectConfirmation(RahasData data) This method creates a subject element with the bearer subject confirmation method.protected org.opensaml.saml.saml2.core.SubjectSAML2TokenIssuer.createSubjectWithHolderOfKeySubjectConfirmation(Document doc, org.apache.wss4j.common.crypto.Crypto crypto, Instant creationTime, Instant expirationTime, RahasData data) This method will create a SAML 2 subject based on Holder of Key confirmation method.protected byte[]SAMLTokenIssuer.generateEphemeralKey(int keySize) Create an ephemeral keyorg.apache.wss4j.common.crypto.CryptoSAMLTokenIssuerConfig.getIssuerCrypto(ClassLoader classLoader) This method will create a Crypto object based on property values defined in cryptoElement or cryptoPropertiesFile.SAML2TokenIssuer.getResponseAction(RahasData data) SAMLTokenIssuer.getResponseAction(RahasData data) Returns thewsa:Actionof the response.SCTIssuer.getResponseAction(RahasData data) TokenCancelerImpl.getResponseAction(RahasData data) Returns thewsa:Actionof the response.SAMLTokenIssuerConfig.getServiceCert(org.apache.wss4j.common.crypto.Crypto crypto, String serviceAddress) Uses thewst:AppliesToto figure out the certificate to encrypt the secret in the SAML tokenstatic byte[]TokenIssuerUtil.getSharedSecret(RahasData data, int keyComputation, int keySize) static voidTokenIssuerUtil.handleRequestedProofToken(RahasData data, int wstVersion, AbstractIssuerConfig config, org.apache.axiom.om.OMElement rstrElem, Token token, Document doc) org.apache.axiom.soap.SOAPEnvelopeThis is the main method which issues SAML2 assertions as security token responses.org.apache.axiom.soap.SOAPEnvelopeorg.apache.axiom.soap.SOAPEnvelopeIssue aSecurityContextTokenbased on the wsse:Signature or wsse:UsernameTokenstatic SCTIssuerConfigstatic SCTIssuerConfigSCTIssuerConfig.load(org.apache.axiom.om.OMElement elem) static TokenCancelerConfigstatic TokenCancelerConfigTokenCancelerConfig.load(org.apache.axiom.om.OMElement elem) org.apache.axiom.soap.SOAPEnvelopeprotected static voidSAML2TokenIssuer.setSubjectNamedIdentifierData(org.opensaml.saml.saml2.core.Subject subject, String subjectNameId, String format) This method will set the subject principal details to the given subject.protected org.opensaml.saml.saml2.core.AssertionSAML2TokenIssuer.signAssertion(Document document, org.opensaml.saml.saml2.core.Assertion assertion, org.apache.wss4j.common.crypto.Crypto crypto) This method signs the given assertion with issuer's private key.org.apache.axiom.soap.SOAPEnvelopeReturns a SOAPEnvelope with the result of the validation.Constructors in org.apache.rahas.impl that throw TrustExceptionModifierConstructorDescriptionSAMLTokenIssuerConfig(String configFilePath) Create a SAMLTokenIssuer configuration with a config file picked from the given location.SAMLTokenIssuerConfig(org.apache.axiom.om.OMElement elem) Create a SAMLTokenIssuer configuration using the give config element -
Uses of TrustException in org.apache.rahas.impl.util
Methods in org.apache.rahas.impl.util that throw TrustExceptionModifier and TypeMethodDescriptionstatic org.opensaml.core.xml.XMLObjectCommonUtil.buildXMLObject(QName objectQName) Builds the requested XMLObject.static org.opensaml.saml.saml2.core.AssertionSAML2Utils.createAssertion()static org.opensaml.saml.saml1.core.AssertionSAMLUtils.createAssertion(String issuerName, Instant notBefore, Instant notOnOrAfter, List<org.opensaml.saml.saml1.core.Statement> statements) This method creates the final SAML assertion.static org.opensaml.saml.saml1.core.AttributeSAMLUtils.createAttribute(String name, String namespace, String value) Creates a SAML attribute similar to following,static org.opensaml.saml.saml1.core.AttributeStatementSAMLUtils.createAttributeStatement(org.opensaml.saml.saml1.core.Subject subject, List<org.opensaml.saml.saml1.core.Attribute> attributeList) Creates an attribute statement.static org.opensaml.saml.saml1.core.AuthenticationStatementSAMLUtils.createAuthenticationStatement(org.opensaml.saml.saml1.core.Subject subject, String authenticationMethod, Instant authenticationInstant) Creates an AuthenticationStatement.static org.opensaml.saml.saml2.core.ConditionsSAML2Utils.createConditions(Instant creationTime, Instant expirationTime) static org.opensaml.saml.saml1.core.ConditionsSAMLUtils.createConditions(Instant notBefore, Instant notOnOrAfter) Creates Conditions object.static org.opensaml.saml.saml2.core.IssuerSAML2Utils.createIssuer(String issuerName) static org.opensaml.xmlsec.signature.KeyInfoSAMLUtils.createKeyInfo()Creates a KeyInfo objectstatic org.opensaml.xmlsec.signature.KeyInfoSAMLUtils.createKeyInfo(org.opensaml.xmlsec.encryption.EncryptedKey encryptedKey) Creates a KeyInfo element given EncryptedKey.static org.opensaml.xmlsec.signature.KeyInfoSAMLUtils.createKeyInfo(org.opensaml.xmlsec.signature.X509Data x509Data) Creates a KeyInfo element given EncryptedKey.static org.opensaml.saml.saml2.core.NameIDSAML2Utils.createNamedIdentifier(String principalName, String format) Create named identifier.static org.opensaml.saml.saml1.core.NameIdentifierSAMLUtils.createNamedIdentifier(String principalName, String format) Create named identifier.static org.opensaml.saml.saml1.core.SubjectSAMLUtils.createSubject(org.opensaml.saml.saml1.core.NameIdentifier nameIdentifier, String confirmationMethod, org.opensaml.xmlsec.signature.KeyInfo keyInfoContent) Creates an opensaml Subject representation.static org.opensaml.saml.saml1.core.SubjectConfirmationSAMLUtils.createSubjectConfirmation(String confirmationMethod, org.opensaml.xmlsec.signature.KeyInfo keyInfoContent) Creates opensaml SubjectConfirmation representation.static org.opensaml.saml.saml1.core.ConfirmationMethodSAMLUtils.createSubjectConfirmationMethod(String confirmationMethod) Creates the subject confirmation method.protected static SAMLTokenIssuerConfigCommonUtil.createTokenIssuerConfiguration(String configFile) protected static SAMLTokenIssuerConfigCommonUtil.createTokenIssuerConfiguration(org.apache.axiom.om.OMElement configElement) protected static SAMLTokenIssuerConfigCommonUtil.createTokenIssuerConfiguration(org.apache.axis2.description.Parameter messageContextParameter) static org.opensaml.xmlsec.signature.KeyInfoCommonUtil.getCertificateBasedKeyInfo(X509Certificate certificate) Creates the certificate based KeyInfo object.static X509CertificateCommonUtil.getCertificateByAlias(org.apache.wss4j.common.crypto.Crypto crypto, String alias) Gets the certificates chain by alias.static X509Certificate[]CommonUtil.getCertificatesByAlias(org.apache.wss4j.common.crypto.Crypto crypto, String alias) Gets the certificates chain by alias.static org.apache.wss4j.common.crypto.CryptoCommonUtil.getCrypto(String propertiesFile, ClassLoader classLoader) Constructs crypto configuration based on the given properties.static org.apache.wss4j.common.crypto.CryptoCommonUtil.getCrypto(Properties properties, ClassLoader classLoader) Constructs crypto configuration based on the given properties.static ElementSAML2Utils.getElementFromAssertion(org.opensaml.core.xml.XMLObject xmlObj) static DocumentCommonUtil.getOMDOMDocument()This method creates a DOM compatible Axiom document.static SAMLCallbackHandlerCommonUtil.getSAMLCallbackHandler(SAMLTokenIssuerConfig tokenIssuerConfiguration, RahasData data) Gets the SAML callback handler.static org.opensaml.xmlsec.signature.KeyInfoCommonUtil.getSymmetricKeyBasedKeyInfo(Document doc, RahasData data, X509Certificate serviceCert, int keySize, org.apache.wss4j.common.crypto.Crypto crypto, int keyComputation) This method creates KeyInfo element of an assertion.static SAMLTokenIssuerConfigCommonUtil.getTokenIssuerConfiguration(org.apache.axiom.om.OMElement configElement, String configFile, org.apache.axis2.description.Parameter messageContextParameter) Creates the token issuer configuration.static voidSAMLUtils.signAssertion(org.opensaml.saml.saml1.core.Assertion assertion, org.apache.wss4j.common.crypto.Crypto crypto, String issuerKeyAlias, String issuerKeyPassword) Signs the SAML assertion. -
Uses of TrustException in org.apache.rampart.saml
Methods in org.apache.rampart.saml that throw TrustExceptionModifier and TypeMethodDescriptionorg.apache.axiom.om.OMElementSAML1AssertionHandler.getAssertionElement()org.apache.axiom.om.OMElementSAML2AssertionHandler.getAssertionElement()abstract org.apache.axiom.om.OMElementSAMLAssertionHandler.getAssertionElement()Gets the assertion element as an Axiom OMElement. -
Uses of TrustException in org.apache.rampart.util
Methods in org.apache.rampart.util that throw TrustExceptionModifier and TypeMethodDescriptionstatic StringRampartUtil.getSecConvToken(RampartMessageData rmd, SecureConversationToken secConvTok) Obtain a security context token.