Uses of Class
org.apache.wss4j.common.ext.WSSecurityException
-
-
Uses of WSSecurityException in org.apache.wss4j.common
Methods in org.apache.wss4j.common that throw WSSecurityException Modifier and Type Method Description CryptoSecurityActionToken. getCrypto()CryptoSignatureEncryptionActionToken. getCrypto() -
Uses of WSSecurityException in org.apache.wss4j.common.bsp
Methods in org.apache.wss4j.common.bsp that throw WSSecurityException Modifier and Type Method Description voidBSPEnforcer. handleBSPRule(BSPRule bspRule) -
Uses of WSSecurityException in org.apache.wss4j.common.cache
Constructors in org.apache.wss4j.common.cache that throw WSSecurityException Constructor Description EHCacheReplayCache(String key)EHCacheReplayCache(String key, Path diskstorePath)EHCacheReplayCache(String key, Path diskstorePath, long diskSize, long heapEntries, boolean persistent) -
Uses of WSSecurityException in org.apache.wss4j.common.crypto
Methods in org.apache.wss4j.common.crypto that throw WSSecurityException Modifier and Type Method Description protected voidMerlin. addTrustAnchors(Set<TrustAnchor> set, KeyStore keyStore)AddsTrustAnchors found in the provided key store to the set.voidAlgorithmSuiteValidator. checkAsymmetricKeyLength(X509Certificate x509Certificate)Check the asymmetric key lengthvoidAlgorithmSuiteValidator. checkAsymmetricKeyLength(X509Certificate[] x509Certificates)Check the asymmetric key lengthvoidAlgorithmSuiteValidator. checkAsymmetricKeyLength(PublicKey publicKey)Check the asymmetric key lengthvoidAlgorithmSuiteValidator. checkC14nAlgorithm(String c14nAlgorithm)Check the C14n AlgorithmvoidAlgorithmSuiteValidator. checkDerivedKeyAlgorithm(String algorithm)Check Derived Key algorithmvoidAlgorithmSuiteValidator. checkEncryptionDerivedKeyLength(int derivedKeyLength)Check Encryption Derived Key length (in bytes)voidAlgorithmSuiteValidator. checkEncryptionKeyWrapAlgorithm(String keyWrapAlgorithm)voidAlgorithmSuiteValidator. checkSignatureAlgorithms(XMLSignature xmlSignature)Check the Signature AlgorithmsvoidAlgorithmSuiteValidator. checkSignatureDerivedKeyLength(int derivedKeyLength)Check Signature Derived Key length (in bytes)voidAlgorithmSuiteValidator. checkSignatureMethod(String signatureMethod)Check the Signature MethodvoidAlgorithmSuiteValidator. checkSymmetricEncryptionAlgorithm(String symmetricAlgorithm)voidAlgorithmSuiteValidator. checkSymmetricKeyLength(int secretKeyLength)Check the symmetric key lengthvoidDERDecoder. expect(byte val)Confirm that the byte at the current position matches the given value.voidDERDecoder. expect(int val)Confirm that the byte at the current position matches the given value.byte[]DERDecoder. getBytes(int length)Return an array of bytes from the current position.byte[]Crypto. getBytesFromCertificates(X509Certificate[] certs)Get a byte array given an array of X509 certificates.byte[]CryptoBase. getBytesFromCertificates(X509Certificate[] certs)Get a byte array given an array of X509 certificates.CertificateFactoryCrypto. getCertificateFactory()Get the CertificateFactory instance on this Crypto instanceCertificateFactoryCryptoBase. getCertificateFactory()Get the CertificateFactory instance on this Crypto instanceCertificateFactoryMerlin. getCertificateFactory()Singleton certificate factory for this Crypto instance.X509Certificate[]Crypto. getCertificatesFromBytes(byte[] data)Construct an array of X509Certificate's from the byte array.X509Certificate[]CryptoBase. getCertificatesFromBytes(byte[] data)Construct an array of X509Certificate's from the byte array.StringCrypto. getDefaultX509Identifier()Retrieves the identifier name of the default certificate.StringCryptoBase. getDefaultX509Identifier()Retrieves the identifier name of the default certificate.StringMerlin. getDefaultX509Identifier()Retrieves the identifier name of the default certificate.static CryptoCryptoFactory. getInstance()getInstancestatic CryptoCryptoFactory. getInstance(Class<? extends Crypto> cryptoClass, Map<Object,Object> map)getInstancestatic CryptoCryptoFactory. getInstance(String propFilename)getInstancestatic CryptoCryptoFactory. getInstance(String propFilename, ClassLoader customClassLoader)static CryptoCryptoFactory. getInstance(Properties properties)getInstancestatic CryptoCryptoFactory. getInstance(Properties properties, ClassLoader classLoader, PasswordEncryptor passwordEncryptor)getInstanceintDERDecoder. getLength()Get the DER length at the current position.protected byte[]CryptoBase. getNameConstraints(X509Certificate cert)Extracts the NameConstraints sequence from the certificate.PrivateKeyCertificateStore. getPrivateKey(String identifier, String password)Gets the private key corresponding to the identifier.PrivateKeyCertificateStore. getPrivateKey(X509Certificate certificate, CallbackHandler callbackHandler)Gets the private key corresponding to the certificate.PrivateKeyCertificateStore. getPrivateKey(PublicKey publicKey, CallbackHandler callbackHandler)Gets the private key corresponding to the given PublicKey.PrivateKeyCrypto. getPrivateKey(String identifier, String password)Gets the private key corresponding to the identifier.PrivateKeyCrypto. getPrivateKey(X509Certificate certificate, CallbackHandler callbackHandler)Gets the private key corresponding to the certificate.PrivateKeyCrypto. getPrivateKey(PublicKey publicKey, CallbackHandler callbackHandler)Gets the private key corresponding to the given PublicKey.PrivateKeyMerlin. getPrivateKey(String identifier, String password)Gets the private key corresponding to the identifier.PrivateKeyMerlin. getPrivateKey(X509Certificate certificate, CallbackHandler callbackHandler)Gets the private key corresponding to the certificate.PrivateKeyMerlin. getPrivateKey(PublicKey publicKey, CallbackHandler callbackHandler)Gets the private key corresponding to the given PublicKey.static PropertiesCryptoFactory. getProperties(String propFilename, ClassLoader loader)This allows loading the resources with a custom class loaderbyte[]Crypto. getSKIBytesFromCert(X509Certificate cert)Reads the SubjectKeyIdentifier information from the certificate.byte[]CryptoBase. getSKIBytesFromCert(X509Certificate cert)Reads the SubjectKeyIdentifier information from the certificate.byte[]X509SubjectPublicKeyInfo. getSubjectPublicKey()Get the subjectPublicKey element of the SubjectPublicKeyInfo.X509Certificate[]CertificateStore. getX509Certificates(CryptoType cryptoType)Get an X509Certificate (chain) corresponding to the CryptoType argument.X509Certificate[]Crypto. getX509Certificates(CryptoType cryptoType)Get an X509Certificate (chain) corresponding to the CryptoType argument.X509Certificate[]Merlin. getX509Certificates(CryptoType cryptoType)Get an X509Certificate (chain) corresponding to the CryptoType argument.StringCertificateStore. getX509Identifier(X509Certificate cert)Get the implementation-specific identifier corresponding to the cert parameter.StringCrypto. getX509Identifier(X509Certificate cert)Get the implementation-specific identifier corresponding to the cert parameter, e.g.StringMerlin. getX509Identifier(X509Certificate cert)Get the implementation-specific identifier corresponding to the cert parameter.protected KeyStoreMerlin. load(InputStream input, String storepass, String provider, String type)Loads the keystore from anInputStream.X509CertificateCrypto. loadCertificate(InputStream in)Load a X509Certificate from the input stream.X509CertificateCryptoBase. loadCertificate(InputStream in)Load a X509Certificate from the input stream.static InputStreamMerlin. loadInputStream(ClassLoader loader, String location)Load a KeyStore object as an InputStream, using the ClassLoader and location argumentsvoidMerlin. loadProperties(Properties properties, ClassLoader loader, PasswordEncryptor passwordEncryptor)voidMerlinDevice. loadProperties(Properties properties, ClassLoader loader, PasswordEncryptor passwordEncryptor)voidDERDecoder. skip(int length)Advance the current position by the given number of bytes.booleanDERDecoder. test(byte val)Test if the byte at the current position matches the given value.protected voidCertificateStore. verifyTrust(X509Certificate[] certs, boolean enableRevocation, Collection<Pattern> subjectCertConstraints)Evaluate whether a given certificate chain should be trusted.voidCertificateStore. verifyTrust(X509Certificate[] certs, boolean enableRevocation, Collection<Pattern> subjectCertConstraints, Collection<Pattern> issuerCertConstraints)voidCertificateStore. verifyTrust(PublicKey publicKey)Evaluate whether a given public key should be trusted.voidCrypto. verifyTrust(X509Certificate[] certs, boolean enableRevocation, Collection<Pattern> subjectCertConstraints, Collection<Pattern> issuerCertConstraints)Evaluate whether a given certificate chain should be trusted.voidCrypto. verifyTrust(PublicKey publicKey)Evaluate whether a given public key should be trusted.protected voidMerlin. verifyTrust(X509Certificate[] certs, boolean enableRevocation, Collection<Pattern> subjectCertConstraints)Evaluate whether a given certificate chain should be trusted.voidMerlin. verifyTrust(X509Certificate[] certs, boolean enableRevocation, Collection<Pattern> subjectCertConstraints, Collection<Pattern> issuerCertConstraints)voidMerlin. verifyTrust(PublicKey publicKey)Evaluate whether a given public key should be trusted.protected voidMerlinAKI. verifyTrust(X509Certificate[] certs, boolean enableRevocation, Collection<Pattern> subjectCertConstraints)Evaluate whether a given certificate chain should be trusted.Constructors in org.apache.wss4j.common.crypto that throw WSSecurityException Constructor Description DERDecoder(byte[] derEncoded)Construct a DERDecoder for the given byte array.Merlin(Properties properties, ClassLoader loader, PasswordEncryptor passwordEncryptor)MerlinAKI(Properties properties, ClassLoader loader, PasswordEncryptor passwordEncryptor)MerlinDevice(Properties properties, ClassLoader loader, PasswordEncryptor passwordEncryptor)X509SubjectPublicKeyInfo(byte[] x509EncodedPublicKey)Construct a SubjectPublicKeyInfo for the given X.509-encoded public key.X509SubjectPublicKeyInfo(PublicKey key)Construct a SubjectPublicKeyInfo for the given public key. -
Uses of WSSecurityException in org.apache.wss4j.common.derivedKey
Methods in org.apache.wss4j.common.derivedKey that throw WSSecurityException Modifier and Type Method Description byte[]ConversationConstants.DerivationAlgorithm. createKey(byte[] secret, byte[] seed, int offset, long length)byte[]DerivationAlgorithm. createKey(byte[] secret, byte[] seed, int offset, long length)byte[]P_SHA1. createKey(byte[] secret, byte[] seed, int offset, long length)static byte[]DerivedKeyUtils. deriveKey(String algorithm, String label, int length, byte[] secret, byte[] nonce, int offset)Derive a key from this DerivedKeyToken instancestatic DerivationAlgorithmAlgoFactory. getInstance(String algorithm)This gives a DerivationAlgorithm instance from the default set of algorithms provided -
Uses of WSSecurityException in org.apache.wss4j.common.kerberos
Methods in org.apache.wss4j.common.kerberos that throw WSSecurityException Modifier and Type Method Description KerberosContextKerberosClientExceptionAction. run()KerberosServiceContextKerberosServiceExceptionAction. run() -
Uses of WSSecurityException in org.apache.wss4j.common.saml
Methods in org.apache.wss4j.common.saml that throw WSSecurityException Modifier and Type Method Description StringSamlAssertionWrapper. assertionToString()Method assertionToString ...voidSamlAssertionWrapper. checkAudienceRestrictions(List<String> audienceRestrictions)Check the AudienceRestrictions of the AssertionvoidSamlAssertionWrapper. checkAuthnStatements(int futureTTL)Check the various attributes of the AuthnStatements of the assertion (if any)voidSamlAssertionWrapper. checkConditions(int futureTTL)Check the Conditions of the Assertion.voidSamlAssertionWrapper. checkIssueInstant(int futureTTL, int ttl)Check the IssueInstant value of the Assertion.static org.opensaml.core.xml.XMLObjectOpenSAMLUtil. fromDom(Element root)Convert a SAML Assertion from a DOM Element to an XMLObjectstatic SAMLKeyInfoSAMLUtil. getCredentialFromKeyInfo(Element keyInfoElement, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)This method returns a SAMLKeyInfo corresponding to the credential found in the KeyInfo (DOM Element) argument.static SAMLKeyInfoSAMLUtil. getCredentialFromSubject(SamlAssertionWrapper samlAssertion, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)Parse a SAML Assertion to obtain a SAMLKeyInfo object from the Subject of the assertionstatic SAMLKeyInfoSAMLUtil. getCredentialFromSubject(org.opensaml.saml.saml1.core.Assertion assertion, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a SAML 1.1 assertionstatic SAMLKeyInfoSAMLUtil. getCredentialFromSubject(org.opensaml.saml.saml2.core.Assertion assertion, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a SAML 2 assertionorg.opensaml.xmlsec.signature.SignatureSamlAssertionWrapper. getSignature()byte[]SamlAssertionWrapper. getSignatureValue()Get the SignatureValue bytes of the signed SAML AssertionvoidSamlAssertionWrapper. parseSubject(SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)This method parses the KeyInfo of the Subject.SAMLKeyInfoSAMLKeyInfoProcessor. processSAMLKeyInfo(Element keyInfoElement)voidSamlAssertionWrapper. signAssertion(String issuerKeyName, String issuerKeyPassword, Crypto issuerCrypto, boolean sendKeyValue)Create an enveloped signature on the assertion that has been created.voidSamlAssertionWrapper. signAssertion(String issuerKeyName, String issuerKeyPassword, Crypto issuerCrypto, boolean sendKeyValue, String canonicalizationAlgorithm, String signatureAlgorithm)Create an enveloped signature on the assertion that has been created.voidSamlAssertionWrapper. signAssertion(String issuerKeyName, String issuerKeyPassword, Crypto issuerCrypto, boolean sendKeyValue, String canonicalizationAlgorithm, String signatureAlgorithm, String signatureDigestAlgorithm)Create an enveloped signature on the assertion that has been created.static ElementOpenSAMLUtil. toDom(org.opensaml.core.xml.XMLObject xmlObject, Document doc)Convert a SAML Assertion from a XMLObject to a DOM Elementstatic ElementOpenSAMLUtil. toDom(org.opensaml.core.xml.XMLObject xmlObject, Document doc, boolean signObject)Convert a SAML Assertion from a XMLObject to a DOM ElementElementSamlAssertionWrapper. toDOM(Document doc)Create a DOM from the current XMLObject content.voidSamlAssertionWrapper. validateSignatureAgainstProfile()Validate the signature of the Assertion against the Profile.voidSamlAssertionWrapper. verifySignature(SAMLKeyInfo samlKeyInfo)Verify the signature of this assertionvoidSamlAssertionWrapper. verifySignature(SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)Verify the signature of this assertionConstructors in org.apache.wss4j.common.saml that throw WSSecurityException Constructor Description SamlAssertionWrapper(SAMLCallback samlCallback)Constructor SamlAssertionWrapper creates a new SamlAssertionWrapper instance.SamlAssertionWrapper(org.opensaml.saml.common.SAMLObject samlObject)Constructor SamlAssertionWrapper creates a new SamlAssertionWrapper instance.SamlAssertionWrapper(Element element)Constructor SamlAssertionWrapper creates a new SamlAssertionWrapper instance. -
Uses of WSSecurityException in org.apache.wss4j.common.saml.builder
Methods in org.apache.wss4j.common.saml.builder that throw WSSecurityException Modifier and Type Method Description static org.opensaml.saml.saml1.core.AdviceSAML1ComponentBuilder. createAdvice(AdviceBean adviceBean)Create a Advice objectstatic org.opensaml.saml.saml2.core.AdviceSAML2ComponentBuilder. createAdvice(AdviceBean adviceBean)Create a Advice objectstatic org.opensaml.xmlsec.signature.KeyInfoSAML1ComponentBuilder. createKeyInfo(KeyInfoBean keyInfo)Create an Opensaml KeyInfo object from the parametersstatic org.opensaml.saml.saml1.core.SubjectSAML1ComponentBuilder. createSaml1v1Subject(SubjectBean subjectBean)Create a SAML Subject from a SubjectBean instancestatic org.opensaml.saml.saml2.core.SubjectSAML2ComponentBuilder. createSaml2Subject(SubjectBean subjectBean)Create a Subject.static List<org.opensaml.saml.saml1.core.AttributeStatement>SAML1ComponentBuilder. createSamlv1AttributeStatement(List<AttributeStatementBean> attributeData)Create SAML 1.1 attribute statement(s)static List<org.opensaml.saml.saml1.core.AuthenticationStatement>SAML1ComponentBuilder. createSamlv1AuthenticationStatement(List<AuthenticationStatementBean> authBeans)Create SAML 1.1 authentication statement(s)static List<org.opensaml.saml.saml1.core.AuthorizationDecisionStatement>SAML1ComponentBuilder. createSamlv1AuthorizationDecisionStatement(List<AuthDecisionStatementBean> decisionData)Create SAML 1.1 Authorization Decision Statement(s)static org.opensaml.saml.saml2.core.SubjectConfirmationDataSAML2ComponentBuilder. createSubjectConfirmationData(SubjectConfirmationDataBean subjectConfirmationDataBean, KeyInfoBean keyInfoBean)Create a SubjectConfirmationData object -
Uses of WSSecurityException in org.apache.wss4j.common.spnego
Methods in org.apache.wss4j.common.spnego that throw WSSecurityException Modifier and Type Method Description voidSpnegoTokenContext. retrieveServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName)Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this BinarySecurityToken.voidSpnegoTokenContext. retrieveServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm)Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this BinarySecurityToken.voidSpnegoTokenContext. retrieveServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm, boolean requestCredDeleg, GSSCredential delegationCredential)Retrieve a service ticket from a KDC using the Kerberos JAAS module, and set it in this BinarySecurityToken.byte[]SpnegoTokenContext. unwrapKey(byte[] secret)Unwrap a keyvoidSpnegoTokenContext. validateServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, boolean isUsernameServiceNameForm, byte[] ticket)Validate a service ticket.voidSpnegoTokenContext. validateServiceTicket(String jaasLoginModuleName, CallbackHandler callbackHandler, String serviceName, byte[] ticket)Validate a service ticket.byte[]SpnegoTokenContext. wrapKey(byte[] secret)Wrap a key -
Uses of WSSecurityException in org.apache.wss4j.common.token
Methods in org.apache.wss4j.common.token that throw WSSecurityException Modifier and Type Method Description X509Certificate[]SecurityTokenReference. getKeyIdentifier(Crypto crypto)Gets the KeyIdentifier.ReferenceSecurityTokenReference. getReference()Gets the Reference.X509CertificateX509Security. getX509Certificate(Crypto crypto)Gets the X509Certificate certificate.X509Certificate[]PKIPathSecurity. getX509Certificates(Crypto crypto)get the X509Certificate array.X509Certificate[]SecurityTokenReference. getX509IssuerSerial(Crypto crypto)Gets the certificate identified with X509 issuerSerial data.X509CertificateSecurityTokenReference. getX509SKIAlias(Crypto crypto)voidSecurityTokenReference. setKeyIdentifier(String valueType, String keyIdVal)voidSecurityTokenReference. setKeyIdentifier(String valueType, String keyIdVal, boolean base64)voidSecurityTokenReference. setKeyIdentifier(X509Certificate cert)Sets the KeyIdentifier Element as a X509 certificate.voidSecurityTokenReference. setKeyIdentifierEncKeySHA1(String value)voidSecurityTokenReference. setKeyIdentifierSKI(X509Certificate cert, Crypto crypto)Sets the KeyIdentifier Element as a X509 Subject-Key-Identifier (SKI).voidSecurityTokenReference. setKeyIdentifierThumb(X509Certificate cert)Sets the KeyIdentifier Element as a Thumbprint.voidBinarySecurity. setToken(byte[] data)set the token information.voidX509Security. setX509Certificate(X509Certificate cert)Sets the X509Certificate.voidPKIPathSecurity. setX509Certificates(X509Certificate[] certs, Crypto crypto)set the X509Certificate array.Constructors in org.apache.wss4j.common.token that throw WSSecurityException Constructor Description BinarySecurity(CallbackHandler callbackHandler)Create a BinarySecurityToken via a CallbackHandlerBinarySecurity(Element elem, BSPEnforcer bspEnforcer)Constructor.DOMX509Data(Element x509DataElement)Constructor.PKIPathSecurity(Element elem, BSPEnforcer bspEnforcer)Constructor.Reference(Element elem)Constructor.SecurityTokenReference(Element elem, BSPEnforcer bspEnforcer)Constructor.X509Security(Element elem, BSPEnforcer bspEnforcer)This constructor creates a new X509 certificate object and initializes it from the data contained in the element. -
Uses of WSSecurityException in org.apache.wss4j.common.util
Methods in org.apache.wss4j.common.util that throw WSSecurityException Modifier and Type Method Description static StringUsernameTokenUtil. doPasswordDigest(byte[] nonce, String created, byte[] password)static StringUsernameTokenUtil. doPasswordDigest(byte[] nonce, String created, String password)static byte[]UsernameTokenUtil. doRawPasswordDigest(byte[] nonce, String created, byte[] password)static byte[]UsernameTokenUtil. generateDerivedKey(byte[] password, byte[] salt, int iteration)This static method generates a derived key as defined in WSS Username Token Profile.static byte[]UsernameTokenUtil. generateDerivedKey(String password, byte[] salt, int iteration)This static method generates a derived key as defined in WSS Username Token Profile.static byte[]KeyUtils. generateDigest(byte[] inputBytes)Generate a (SHA1) digest of the input bytes.static byte[]UsernameTokenUtil. generateNonce(int length)Generate a nonce of the given length using a secure random algorithm.static StringAttachmentUtils. getAttachmentId(String xopUri)static byte[]AttachmentUtils. getBytesFromAttachment(String xopUri, CallbackHandler attachmentCallbackHandler, boolean removeAttachments)static CipherKeyUtils. getCipherInstance(String cipherAlgo)Translate the "cipherAlgo" URI to a JCE ID, and return a javax.crypto.Cipher instance of this type.static CipherKeyUtils. getCipherInstance(String cipherAlgo, String provider)Translate the "cipherAlgo" URI to a JCE ID, and request a javax.crypto.Cipher instance of this type from the given provider.static KeyGeneratorKeyUtils. getKeyGenerator(String algorithm)static intKeyUtils. getKeyLength(String algorithm)Returns the length of the key in # of bytes.static StringUsernameTokenUtil. getRawPassword(CallbackHandler callbackHandler, String username, String password, String passwordType)Get the raw (plain text) password used to compute secret key.static InputStreamLoader. loadInputStream(ClassLoader loader, String resource)static voidAttachmentUtils. readAndReplaceEncryptedAttachmentHeaders(Map<String,String> headers, InputStream attachmentInputStream)static InputStreamAttachmentUtils. setupAttachmentDecryptionStream(String encAlgo, Cipher cipher, Key key, InputStream inputStream)static InputStreamAttachmentUtils. setupAttachmentEncryptionStream(Cipher cipher, boolean complete, Attachment attachment, Map<String,String> headers)static voidAttachmentUtils. storeBytesInAttachment(Element parentElement, Document doc, String attachmentId, byte[] bytes, CallbackHandler attachmentCallbackHandler)
-