Uses of Interface
org.apache.wss4j.common.crypto.Crypto
-
-
Uses of Crypto in org.apache.wss4j.common
Methods in org.apache.wss4j.common that return Crypto Modifier and Type Method Description Crypto
SecurityActionToken. getCrypto()
Crypto
SignatureEncryptionActionToken. getCrypto()
Methods in org.apache.wss4j.common with parameters of type Crypto Modifier and Type Method Description void
SignatureEncryptionActionToken. setCrypto(Crypto crypto)
-
Uses of Crypto in org.apache.wss4j.common.crypto
Classes in org.apache.wss4j.common.crypto that implement Crypto Modifier and Type Class Description class
CertificateStore
A Crypto implementation based on a simple array of X509Certificate(s).class
CryptoBase
This Abstract Base Class implements the accessor and keystore-independent methods and functionality of the Crypto interface.class
Merlin
A Crypto implementation based on two Java KeyStore objects, one being the keystore, and one being the truststore.class
MerlinAKI
A Crypto implementation based on two Java KeyStore objects, one being the keystore, and one being the truststore.class
MerlinDevice
A Crypto implementation based on two Java KeyStore objects, one being the keystore, and one being the truststore.Methods in org.apache.wss4j.common.crypto that return Crypto Modifier and Type Method Description static Crypto
CryptoFactory. getInstance()
getInstancestatic Crypto
CryptoFactory. getInstance(Class<? extends Crypto> cryptoClass, Map<Object,Object> map)
getInstancestatic Crypto
CryptoFactory. getInstance(String propFilename)
getInstancestatic Crypto
CryptoFactory. getInstance(String propFilename, ClassLoader customClassLoader)
static Crypto
CryptoFactory. getInstance(Properties properties)
getInstancestatic Crypto
CryptoFactory. getInstance(Properties properties, ClassLoader classLoader, PasswordEncryptor passwordEncryptor)
getInstanceMethod parameters in org.apache.wss4j.common.crypto with type arguments of type Crypto Modifier and Type Method Description static Crypto
CryptoFactory. getInstance(Class<? extends Crypto> cryptoClass, Map<Object,Object> map)
getInstance -
Uses of Crypto in org.apache.wss4j.common.saml
Methods in org.apache.wss4j.common.saml that return Crypto Modifier and Type Method Description Crypto
SAMLCallback. getIssuerCrypto()
Methods in org.apache.wss4j.common.saml with parameters of type Crypto Modifier and Type Method Description static SAMLKeyInfo
SAMLUtil. getCredentialFromKeyInfo(Element keyInfoElement, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)
This method returns a SAMLKeyInfo corresponding to the credential found in the KeyInfo (DOM Element) argument.static SAMLKeyInfo
SAMLUtil. getCredentialFromSubject(SamlAssertionWrapper samlAssertion, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto, CallbackHandler callbackHandler)
Parse a SAML Assertion to obtain a SAMLKeyInfo object from the Subject of the assertionstatic SAMLKeyInfo
SAMLUtil. getCredentialFromSubject(org.opensaml.saml.saml1.core.Assertion assertion, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto, CallbackHandler callbackHandler)
Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a SAML 1.1 assertionstatic SAMLKeyInfo
SAMLUtil. getCredentialFromSubject(org.opensaml.saml.saml2.core.Assertion assertion, SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto, CallbackHandler callbackHandler)
Get the SAMLKeyInfo object corresponding to the credential stored in the Subject of a SAML 2 assertionvoid
SamlAssertionWrapper. parseSubject(SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto, CallbackHandler callbackHandler)
This method parses the KeyInfo of the Subject.void
SAMLCallback. setIssuerCrypto(Crypto issuerCrypto)
void
SamlAssertionWrapper. signAssertion(String issuerKeyName, String issuerKeyPassword, Crypto issuerCrypto, boolean sendKeyValue)
Create an enveloped signature on the assertion that has been created.void
SamlAssertionWrapper. signAssertion(String issuerKeyName, String issuerKeyPassword, Crypto issuerCrypto, boolean sendKeyValue, String canonicalizationAlgorithm, String signatureAlgorithm)
Create an enveloped signature on the assertion that has been created.void
SamlAssertionWrapper. 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.void
SamlAssertionWrapper. verifySignature(SAMLKeyInfoProcessor keyInfoProcessor, Crypto sigCrypto)
Verify the signature of this assertion -
Uses of Crypto in org.apache.wss4j.common.token
Methods in org.apache.wss4j.common.token with parameters of type Crypto Modifier and Type Method Description X509Certificate[]
SecurityTokenReference. getKeyIdentifier(Crypto crypto)
Gets the KeyIdentifier.X509Certificate
X509Security. 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.X509Certificate
SecurityTokenReference. getX509SKIAlias(Crypto crypto)
void
SecurityTokenReference. setKeyIdentifierSKI(X509Certificate cert, Crypto crypto)
Sets the KeyIdentifier Element as a X509 Subject-Key-Identifier (SKI).void
PKIPathSecurity. setX509Certificates(X509Certificate[] certs, Crypto crypto)
set the X509Certificate array. -
Uses of Crypto in org.apache.wss4j.dom
Methods in org.apache.wss4j.dom that return Crypto Modifier and Type Method Description Crypto
WSDocInfo. getCrypto()
Methods in org.apache.wss4j.dom with parameters of type Crypto Modifier and Type Method Description void
WSDocInfo. setCrypto(Crypto crypto)
-
Uses of Crypto in org.apache.wss4j.dom.engine
Methods in org.apache.wss4j.dom.engine with parameters of type Crypto Modifier and Type Method Description WSHandlerResult
WSSecurityEngine. processSecurityHeader(Document doc, String actor, CallbackHandler cb, Crypto crypto)
Process the security header given the soap envelope as W3C document.WSHandlerResult
WSSecurityEngine. processSecurityHeader(Document doc, String actor, CallbackHandler cb, Crypto sigVerCrypto, Crypto decCrypto)
Process the security header given the soap envelope as W3C document.WSHandlerResult
WSSecurityEngine. processSecurityHeader(Element securityHeader, String actor, CallbackHandler cb, Crypto sigVerCrypto, Crypto decCrypto)
Process the security header given thewsse:Security
DOM Element. -
Uses of Crypto in org.apache.wss4j.dom.handler
Fields in org.apache.wss4j.dom.handler with type parameters of type Crypto Modifier and Type Field Description protected Map<String,Crypto>
WSHandler. cryptos
Methods in org.apache.wss4j.dom.handler that return Crypto Modifier and Type Method Description Crypto
RequestData. getDecCrypto()
Crypto
RequestData. getSigVerCrypto()
protected Crypto
WSHandler. loadCrypto(String cryptoPropertyFile, String cryptoPropertyRefId, RequestData requestData)
Load a Crypto instance.protected Crypto
WSHandler. loadCryptoFromPropertiesFile(String propFilename, RequestData reqData)
A hook to allow subclass to load Crypto instances from property files in a different way.protected Crypto
WSHandler. loadDecryptionCrypto(RequestData requestData)
Hook to allow subclasses to load their Decryption Crypto however they see fit.protected Crypto
WSHandler. loadEncryptionCrypto(RequestData requestData)
Hook to allow subclasses to load their Encryption Crypto however they see fit.Crypto
WSHandler. loadSignatureCrypto(RequestData requestData)
Hook to allow subclasses to load their Signature creation Crypto however they see fit.Crypto
WSHandler. loadSignatureVerificationCrypto(RequestData requestData)
Hook to allow subclasses to load their Signature verification Crypto however they see fit.Methods in org.apache.wss4j.dom.handler with parameters of type Crypto Modifier and Type Method Description void
RequestData. setDecCrypto(Crypto decCrypto)
void
RequestData. setSigVerCrypto(Crypto sigVerCrypto)
-
Uses of Crypto in org.apache.wss4j.dom.message
Methods in org.apache.wss4j.dom.message with parameters of type Crypto Modifier and Type Method Description Document
WSSecEncrypt. build(Crypto crypto, SecretKey symmetricKey)
Builds the SOAP envelope with encrypted Body and adds encrypted key.Document
WSSecSignature. build(Crypto cr)
Builds a signed soap envelope.protected void
WSSecEncryptedKey. createEncryptedKeyElement(X509Certificate remoteCert, Crypto crypto)
Now we need to setup the EncryptedKey header block: 1) create a EncryptedKey element and set a wsu:Id for it 2) Generate ds:KeyInfo element, this wraps the wsse:SecurityTokenReference 3) Create and set up the SecurityTokenReference according to the keyIdentifier parameter 4) Create the CipherValue element structure and insert the encrypted session keyvoid
WSSecEncrypt. prepare(Crypto crypto, SecretKey symmetricKey)
Initialize a WSSec Encrypt.void
WSSecEncryptedKey. prepare(Crypto crypto, SecretKey symmetricKey)
Create the EncryptedKey Element for inclusion in the security header, by encrypting the symmetricKey parameter using either a public key or certificate that is set on the class, and adding the encrypted bytes as the CipherValue of the EncryptedKey element.void
WSSecSecurityContextToken. prepare(Crypto crypto)
void
WSSecSignature. prepare(Crypto cr)
Initialize a WSSec Signature.void
WSSecDerivedKeyBase. setCrypto(Crypto crypto)
-
Uses of Crypto in org.apache.wss4j.dom.saml
Methods in org.apache.wss4j.dom.saml with parameters of type Crypto Modifier and Type Method Description Document
WSSecSignatureSAML. build(Crypto uCrypto, SamlAssertionWrapper samlAssertion, Crypto iCrypto, String iKeyName, String iKeyPW)
Builds a signed soap envelope with SAML token.void
WSSecSignatureSAML. prepare(Crypto uCrypto, SamlAssertionWrapper samlAssertion, Crypto iCrypto, String iKeyName, String iKeyPW)
Initialize a WSSec SAML Signature. -
Uses of Crypto in org.apache.wss4j.dom.validate
Methods in org.apache.wss4j.dom.validate that return Crypto Modifier and Type Method Description protected Crypto
SignatureTrustValidator. getCrypto(RequestData data)
Methods in org.apache.wss4j.dom.validate with parameters of type Crypto Modifier and Type Method Description protected void
SignatureTrustValidator. validatePublicKey(PublicKey publicKey, Crypto crypto)
Validate a public keyprotected void
SignatureTrustValidator. verifyTrustInCerts(X509Certificate[] certificates, Crypto crypto, RequestData data, boolean enableRevocation)
Evaluate whether the given certificate chain should be trusted. -
Uses of Crypto in org.apache.wss4j.stax.ext
Methods in org.apache.wss4j.stax.ext that return Crypto Modifier and Type Method Description Crypto
WSSSecurityProperties. getDecryptionCrypto()
returns the decryptionCrypto for the key-managementCrypto
WSSSecurityProperties. getEncryptionCrypto()
returns the encryptionCrypto for the key-managementCrypto
WSSSecurityProperties. getSignatureCrypto()
Crypto
WSSSecurityProperties. getSignatureVerificationCrypto()
Methods in org.apache.wss4j.stax.ext with parameters of type Crypto Modifier and Type Method Description void
WSSSecurityProperties. setDecryptionCrypto(Crypto decCrypto)
void
WSSSecurityProperties. setEncryptionCrypto(Crypto encCrypto)
void
WSSSecurityProperties. setSignatureCrypto(Crypto sigCrypto)
void
WSSSecurityProperties. setSignatureVerificationCrypto(Crypto sigVerCrypto)
-
Uses of Crypto in org.apache.wss4j.stax.impl.securityToken
Methods in org.apache.wss4j.stax.impl.securityToken that return Crypto Modifier and Type Method Description protected Crypto
X509SecurityTokenImpl. getCrypto()
Methods in org.apache.wss4j.stax.impl.securityToken with parameters of type Crypto Modifier and Type Method Description static org.apache.xml.security.stax.securityToken.InboundSecurityToken
SecurityTokenFactoryImpl. getSecurityToken(SecurityTokenReferenceType securityTokenReferenceType, Crypto crypto, CallbackHandler callbackHandler, org.apache.xml.security.stax.ext.InboundSecurityContext inboundSecurityContext, WSSSecurityProperties securityProperties)
static org.apache.xml.security.stax.securityToken.InboundSecurityToken
SecurityTokenFactoryImpl. getSecurityToken(org.apache.xml.security.binding.xmldsig.KeyValueType keyValueType, Crypto crypto, CallbackHandler callbackHandler, org.apache.xml.security.stax.ext.SecurityContext securityContext, WSSSecurityProperties securityProperties)
protected void
X509SecurityTokenImpl. setCrypto(Crypto crypto)
Constructors in org.apache.wss4j.stax.impl.securityToken with parameters of type Crypto Constructor Description DsaKeyValueSecurityTokenImpl(org.apache.xml.security.binding.xmldsig.DSAKeyValueType dsaKeyValueType, WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, CallbackHandler callbackHandler, WSSSecurityProperties securityProperties)
ECKeyValueSecurityTokenImpl(org.apache.xml.security.binding.xmldsig11.ECKeyValueType ecKeyValueType, WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, CallbackHandler callbackHandler, WSSSecurityProperties securityProperties)
RsaKeyValueSecurityTokenImpl(org.apache.xml.security.binding.xmldsig.RSAKeyValueType rsaKeyValueType, WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, CallbackHandler callbackHandler, WSSSecurityProperties securityProperties)
SamlSecurityTokenImpl(SamlAssertionWrapper samlAssertionWrapper, org.apache.xml.security.stax.securityToken.InboundSecurityToken subjectSecurityToken, WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier, WSSSecurityProperties securityProperties)
X509PKIPathv1SecurityTokenImpl(WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, CallbackHandler callbackHandler, byte[] binaryContent, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier, WSSSecurityProperties securityProperties)
X509SecurityTokenImpl(org.apache.xml.security.stax.securityToken.SecurityTokenConstants.TokenType tokenType, WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, CallbackHandler callbackHandler, String id, org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier keyIdentifier, WSSSecurityProperties securityProperties, boolean includedInMessage)
X509V3SecurityTokenImpl(WSInboundSecurityContext wsInboundSecurityContext, Crypto crypto, CallbackHandler callbackHandler, byte[] binaryContent, String id, WSSSecurityProperties securityProperties)
-
Uses of Crypto in org.apache.wss4j.stax.validate
Methods in org.apache.wss4j.stax.validate that return Crypto Modifier and Type Method Description protected Crypto
BinarySecurityTokenValidatorImpl. getCrypto(WSSSecurityProperties securityProperties)
-