public class XMLSecurityProperties extends Object
Modifier | Constructor and Description |
---|---|
|
XMLSecurityProperties() |
protected |
XMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties) |
Modifier and Type | Method and Description |
---|---|
void |
addAction(XMLSecurityConstants.Action action) |
void |
addEncryptionPart(SecurePart securePart)
Adds a part which must be encrypted by the framework
|
void |
addInputProcessor(InputProcessor inputProcessor)
Add an additional, non standard, InputProcessor to the chain
|
void |
addSignaturePart(SecurePart securePart) |
List<XMLSecurityConstants.Action> |
getActions()
Returns the actual set actions
|
Key |
getDecryptionKey() |
Key |
getEncryptionKey() |
SecurityTokenConstants.KeyIdentifier |
getEncryptionKeyIdentifier()
returns the KeyIdentifierType which will be used in the secured document
|
String |
getEncryptionKeyTransportAlgorithm()
Returns the encryption key transport algorithm
|
String |
getEncryptionKeyTransportDigestAlgorithm() |
String |
getEncryptionKeyTransportMGFAlgorithm() |
byte[] |
getEncryptionKeyTransportOAEPParams() |
List<SecurePart> |
getEncryptionSecureParts()
Returns the encryption parts which are actually set
|
String |
getEncryptionSymAlgorithm()
Returns the Encryption-Algo
|
Key |
getEncryptionTransportKey() |
X509Certificate |
getEncryptionUseThisCertificate() |
List<InputProcessor> |
getInputProcessorList()
Returns the currently registered additional InputProcessors
|
String |
getSignatureAlgorithm() |
String |
getSignatureCanonicalizationAlgorithm() |
X509Certificate[] |
getSignatureCerts() |
String |
getSignatureDigestAlgorithm() |
Key |
getSignatureKey() |
SecurityTokenConstants.KeyIdentifier |
getSignatureKeyIdentifier() |
int |
getSignaturePosition()
returns the position of the signature.
|
List<SecurePart> |
getSignatureSecureParts() |
Key |
getSignatureVerificationKey() |
boolean |
isAddExcC14NInclusivePrefixes() |
boolean |
isDisableSchemaValidation() |
boolean |
isSkipDocumentEvents()
Returns if the framework is skipping document-events
|
boolean |
isUseSingleCert() |
void |
setActions(List<XMLSecurityConstants.Action> actions)
Specifies how to secure the document eg.
|
void |
setAddExcC14NInclusivePrefixes(boolean addExcC14NInclusivePrefixes) |
void |
setDecryptionKey(Key decryptionKey) |
void |
setDisableSchemaValidation(boolean disableSchemaValidation) |
void |
setEncryptionKey(Key encryptionKey) |
void |
setEncryptionKeyIdentifier(SecurityTokenConstants.KeyIdentifier encryptionKeyIdentifier)
Specifies the KeyIdentifierType to use in the secured document
|
void |
setEncryptionKeyTransportAlgorithm(String encryptionKeyTransportAlgorithm)
Specifies the encryption key transport algorithm
|
void |
setEncryptionKeyTransportDigestAlgorithm(String encryptionKeyTransportDigestAlgorithm) |
void |
setEncryptionKeyTransportMGFAlgorithm(String encryptionKeyTransportMGFAlgorithm) |
void |
setEncryptionKeyTransportOAEPParams(byte[] encryptionKeyTransportOAEPParams) |
void |
setEncryptionSymAlgorithm(String encryptionSymAlgorithm)
Specifies the encryption algorithm
|
void |
setEncryptionTransportKey(Key encryptionTransportKey) |
void |
setEncryptionUseThisCertificate(X509Certificate encryptionUseThisCertificate) |
void |
setSignatureAlgorithm(String signatureAlgorithm) |
void |
setSignatureCanonicalizationAlgorithm(String signatureCanonicalizationAlgorithm) |
void |
setSignatureCerts(X509Certificate[] signatureCerts) |
void |
setSignatureDigestAlgorithm(String signatureDigestAlgorithm) |
void |
setSignatureKey(Key signatureKey) |
void |
setSignatureKeyIdentifier(SecurityTokenConstants.KeyIdentifier signatureKeyIdentifier) |
void |
setSignaturePosition(int signaturePosition)
Specifies the position of the signature
|
void |
setSignatureVerificationKey(Key signatureVerificationKey) |
void |
setSkipDocumentEvents(boolean skipDocumentEvents)
specifies if the framework should forward Document-Events or not
|
void |
setUseSingleCert(boolean useSingleCert) |
public XMLSecurityProperties()
protected XMLSecurityProperties(XMLSecurityProperties xmlSecurityProperties)
public SecurityTokenConstants.KeyIdentifier getSignatureKeyIdentifier()
public void setSignatureKeyIdentifier(SecurityTokenConstants.KeyIdentifier signatureKeyIdentifier)
public int getSignaturePosition()
public void setSignaturePosition(int signaturePosition)
signaturePosition
- Position of the signature (by default: 0)public SecurityTokenConstants.KeyIdentifier getEncryptionKeyIdentifier()
public void setEncryptionKeyIdentifier(SecurityTokenConstants.KeyIdentifier encryptionKeyIdentifier)
encryptionKeyIdentifier
- public void addInputProcessor(InputProcessor inputProcessor)
inputProcessor
- The InputProcessor to addpublic List<InputProcessor> getInputProcessorList()
public void setDecryptionKey(Key decryptionKey)
public Key getDecryptionKey()
public void setEncryptionTransportKey(Key encryptionTransportKey)
public Key getEncryptionTransportKey()
public void setEncryptionKey(Key encryptionKey)
public Key getEncryptionKey()
public void addEncryptionPart(SecurePart securePart)
securePart
- public List<SecurePart> getEncryptionSecureParts()
public String getEncryptionSymAlgorithm()
public void setEncryptionSymAlgorithm(String encryptionSymAlgorithm)
encryptionSymAlgorithm
- The algo to use for encryptionpublic String getEncryptionKeyTransportAlgorithm()
public void setEncryptionKeyTransportAlgorithm(String encryptionKeyTransportAlgorithm)
encryptionKeyTransportAlgorithm
- the encryption key transport algorithm as stringpublic String getEncryptionKeyTransportDigestAlgorithm()
public void setEncryptionKeyTransportDigestAlgorithm(String encryptionKeyTransportDigestAlgorithm)
public String getEncryptionKeyTransportMGFAlgorithm()
public void setEncryptionKeyTransportMGFAlgorithm(String encryptionKeyTransportMGFAlgorithm)
public byte[] getEncryptionKeyTransportOAEPParams()
public void setEncryptionKeyTransportOAEPParams(byte[] encryptionKeyTransportOAEPParams)
public X509Certificate getEncryptionUseThisCertificate()
public void setEncryptionUseThisCertificate(X509Certificate encryptionUseThisCertificate)
public X509Certificate[] getSignatureCerts()
public void setSignatureCerts(X509Certificate[] signatureCerts)
public void addSignaturePart(SecurePart securePart)
public List<SecurePart> getSignatureSecureParts()
public String getSignatureAlgorithm()
public void setSignatureAlgorithm(String signatureAlgorithm)
public String getSignatureDigestAlgorithm()
public void setSignatureDigestAlgorithm(String signatureDigestAlgorithm)
public void setSignatureKey(Key signatureKey)
public Key getSignatureKey()
public boolean isUseSingleCert()
public void setUseSingleCert(boolean useSingleCert)
public boolean isAddExcC14NInclusivePrefixes()
public void setAddExcC14NInclusivePrefixes(boolean addExcC14NInclusivePrefixes)
public List<XMLSecurityConstants.Action> getActions()
public void setActions(List<XMLSecurityConstants.Action> actions)
actions
- public void addAction(XMLSecurityConstants.Action action)
public String getSignatureCanonicalizationAlgorithm()
public void setSignatureCanonicalizationAlgorithm(String signatureCanonicalizationAlgorithm)
public Key getSignatureVerificationKey()
public void setSignatureVerificationKey(Key signatureVerificationKey)
public boolean isSkipDocumentEvents()
public void setSkipDocumentEvents(boolean skipDocumentEvents)
skipDocumentEvents
- set to true when document events should be discarded, false otherwisepublic boolean isDisableSchemaValidation()
public void setDisableSchemaValidation(boolean disableSchemaValidation)
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.