public class XmlAsymmetricKeyImpl extends XmlKeyImpl
| Modifier and Type | Field and Description |
|---|---|
static String |
DSIG_PREFIX |
fac| Constructor and Description |
|---|
XmlAsymmetricKeyImpl(JceConfiguration config,
JceAsymmetricKeyInfo keyInfo,
boolean useInternalCertificate) |
XmlAsymmetricKeyImpl(JceConfiguration config,
JceAsymmetricKeyInfo keyInfo,
EphemeralKeyInfo ephemeralKeyInfo) |
XmlAsymmetricKeyImpl(JceConfiguration config,
JceAsymmetricKeyInfo keyInfo,
EphemeralKeyInfo ephemeralKeyInfo,
boolean useInternalCertificate) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
decrypt(InputStream content,
String elementPath) |
InputStream |
encrypt(InputStream content,
XmlEncryptionAlgorithm algorithm,
String elementPath,
boolean encryptContent) |
KeyInfo |
getKeyInfo(KeyStore.PrivateKeyEntry keyEntry) |
protected org.mule.runtime.api.util.Pair<DOMValidateContext,XMLSignature> |
nodeToValidationContextAndSignature(Node node)
Unpacks the
XMLSignature contained in a Node in the document. |
InputStream |
sign(InputStream content,
XmlSignDigestAlgorithm digestAlgorithm,
XmlCanonicalizationAlgorithm canonicalizationAlgorithm,
XmlSignatureType type,
String elementPath) |
boolean |
validate(InputStream content,
String elementPath) |
protected boolean |
validateSignaturePair(org.mule.runtime.api.util.Pair<DOMValidateContext,XMLSignature> contextAndSignature)
Validates a context and signature
Pair. |
public static final String DSIG_PREFIX
public XmlAsymmetricKeyImpl(JceConfiguration config, JceAsymmetricKeyInfo keyInfo, EphemeralKeyInfo ephemeralKeyInfo)
public XmlAsymmetricKeyImpl(JceConfiguration config, JceAsymmetricKeyInfo keyInfo, boolean useInternalCertificate)
public XmlAsymmetricKeyImpl(JceConfiguration config, JceAsymmetricKeyInfo keyInfo, EphemeralKeyInfo ephemeralKeyInfo, boolean useInternalCertificate)
public InputStream encrypt(InputStream content, XmlEncryptionAlgorithm algorithm, String elementPath, boolean encryptContent)
encrypt in class XmlKeyImplpublic InputStream decrypt(InputStream content, String elementPath)
decrypt in class XmlKeyImplpublic InputStream sign(InputStream content, XmlSignDigestAlgorithm digestAlgorithm, XmlCanonicalizationAlgorithm canonicalizationAlgorithm, XmlSignatureType type, String elementPath)
sign in class XmlKeyImplpublic boolean validate(InputStream content, String elementPath)
validate in class XmlKeyImplprotected boolean validateSignaturePair(org.mule.runtime.api.util.Pair<DOMValidateContext,XMLSignature> contextAndSignature) throws XMLSignatureException
Pair.contextAndSignature - XMLSignatureExceptionprotected org.mule.runtime.api.util.Pair<DOMValidateContext,XMLSignature> nodeToValidationContextAndSignature(Node node)
XMLSignature contained in a Node in the document.node - a Node in the documentXMLSignature and its corresponding DOMValidateContextpublic KeyInfo getKeyInfo(KeyStore.PrivateKeyEntry keyEntry)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.