public class WSSSecurityProperties
extends org.apache.xml.security.stax.ext.XMLSecurityProperties
Constructor and Description |
---|
WSSSecurityProperties() |
WSSSecurityProperties(WSSSecurityProperties wssSecurityProperties) |
addAction, addEncryptionPart, addInputProcessor, addKeyNameMapping, addSignaturePart, getActions, getDecryptionKey, getEncryptionKey, getEncryptionKeyIdentifier, getEncryptionKeyName, getEncryptionKeyTransportAlgorithm, getEncryptionKeyTransportDigestAlgorithm, getEncryptionKeyTransportMGFAlgorithm, getEncryptionKeyTransportOAEPParams, getEncryptionSecureParts, getEncryptionSymAlgorithm, getEncryptionTransportKey, getEncryptionUseThisCertificate, getIdAttributeNS, getInputProcessorList, getKeyNameMap, getSignatureAlgorithm, getSignatureCanonicalizationAlgorithm, getSignatureCerts, getSignatureDigestAlgorithm, getSignatureKey, getSignatureKeyIdentifier, getSignatureKeyIdentifiers, getSignatureKeyName, getSignaturePosition, getSignaturePositionQName, getSignatureSecureParts, getSignatureVerificationKey, isAddExcC14NInclusivePrefixes, isDisableSchemaValidation, isSignatureGenerateIds, isSignatureIncludeDigestTransform, isSignaturePositionStart, isSkipDocumentEvents, isUseSingleCert, setActions, setAddExcC14NInclusivePrefixes, setDecryptionKey, setDisableSchemaValidation, setEncryptionKey, setEncryptionKeyIdentifier, setEncryptionKeyName, setEncryptionKeyTransportAlgorithm, setEncryptionKeyTransportDigestAlgorithm, setEncryptionKeyTransportMGFAlgorithm, setEncryptionKeyTransportOAEPParams, setEncryptionSymAlgorithm, setEncryptionTransportKey, setEncryptionUseThisCertificate, setIdAttributeNS, setSignatureAlgorithm, setSignatureCanonicalizationAlgorithm, setSignatureCerts, setSignatureDigestAlgorithm, setSignatureGenerateIds, setSignatureIncludeDigestTransform, setSignatureKey, setSignatureKeyIdentifier, setSignatureKeyIdentifiers, setSignatureKeyName, setSignaturePosition, setSignaturePositionQName, setSignaturePositionStart, setSignatureVerificationKey, setSkipDocumentEvents, setUseSingleCert
public WSSSecurityProperties()
public WSSSecurityProperties(WSSSecurityProperties wssSecurityProperties)
public CallbackHandler getCallbackHandler()
public void setCallbackHandler(CallbackHandler callbackHandler)
callbackHandler
- the password callback handlerpublic Integer getTimestampTTL()
public void setTimestampTTL(Integer timestampTTL)
public boolean isStrictTimestampCheck()
public void setStrictTimestampCheck(boolean strictTimestampCheck)
public void setHandleCustomPasswordTypes(boolean handleCustomTypes)
handleCustomTypes
- whether to handle custom UsernameToken password types or notpublic boolean getHandleCustomPasswordTypes()
public String getTokenUser()
public void setTokenUser(String tokenUser)
public WSSConstants.UsernameTokenPasswordType getUsernameTokenPasswordType()
public void setUsernameTokenPasswordType(WSSConstants.UsernameTokenPasswordType usernameTokenPasswordType)
public boolean isEnableSignatureConfirmationVerification()
public void setEnableSignatureConfirmationVerification(boolean enableSignatureConfirmationVerification)
public boolean isUseReqSigCertForEncryption()
public void setUseReqSigCertForEncryption(boolean useReqSigCertForEncryption)
public String getActor()
public void setActor(String actor)
public org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier getDerivedKeyKeyIdentifier()
public void setDerivedKeyKeyIdentifier(org.apache.xml.security.stax.securityToken.SecurityTokenConstants.KeyIdentifier derivedKeyKeyIdentifier)
public WSSConstants.DerivedKeyTokenReference getDerivedKeyTokenReference()
public void setDerivedKeyTokenReference(WSSConstants.DerivedKeyTokenReference derivedKeyTokenReference)
public void addIgnoreBSPRule(BSPRule bspRule)
public void setSignatureUser(String signatureUser)
public String getSignatureUser()
public KeyStore getSignatureKeyStore()
public void loadSignatureKeyStore(URL url, char[] keyStorePassword) throws Exception
Exception
public Properties getSignatureCryptoProperties()
public void setSignatureCryptoProperties(Properties cryptoProperties)
public void setSignatureCryptoProperties(Properties cryptoProperties, PasswordEncryptor passwordEncryptor)
public void setSignatureCryptoClass(Class<? extends Merlin> signatureCryptoClass)
public Crypto getSignatureCrypto() throws WSSConfigurationException
WSSConfigurationException
public void setSignatureCrypto(Crypto sigCrypto)
public KeyStore getSignatureVerificationKeyStore()
public void loadSignatureVerificationKeystore(URL url, char[] keyStorePassword) throws Exception
Exception
public Properties getSignatureVerificationCryptoProperties()
public void setSignatureVerificationCryptoProperties(Properties cryptoProperties)
public void setSignatureVerificationCryptoProperties(Properties cryptoProperties, PasswordEncryptor passwordEncryptor)
public Class<? extends Merlin> getSignatureVerificationCryptoClass()
public void setSignatureVerificationCryptoClass(Class<? extends Merlin> signatureVerificationCryptoClass)
public Crypto getSignatureVerificationCrypto() throws WSSConfigurationException
WSSConfigurationException
public void setSignatureVerificationCrypto(Crypto sigVerCrypto)
public KeyStore getDecryptionKeyStore()
public void loadDecryptionKeystore(URL url, char[] keyStorePassword) throws Exception
url
- The URL to the keystorekeyStorePassword
- The keyStorePasswordException
- thrown if something goes wrong while loading the keystorepublic Properties getDecryptionCryptoProperties()
public void setDecryptionCryptoProperties(Properties cryptoProperties)
public void setDecryptionCryptoProperties(Properties cryptoProperties, PasswordEncryptor passwordEncryptor)
public Class<? extends Merlin> getDecryptionCryptoClass()
public void setDecryptionCryptoClass(Class<? extends Merlin> decryptionCryptoClass)
decryptionCryptoClass
- public Crypto getDecryptionCrypto() throws WSSConfigurationException
WSSConfigurationException
- thrown if something goes wrongpublic void setDecryptionCrypto(Crypto decCrypto)
public KeyStore getEncryptionKeyStore()
public void loadEncryptionKeystore(URL url, char[] keyStorePassword) throws Exception
url
- The URL to the keystorekeyStorePassword
- The keyStorePasswordException
- thrown if something goes wrong while loading the keystorepublic Properties getEncryptionCryptoProperties()
public void setEncryptionCryptoProperties(Properties cryptoProperties)
public void setEncryptionCryptoProperties(Properties cryptoProperties, PasswordEncryptor passwordEncryptor)
public Class<? extends Merlin> getEncryptionCryptoClass()
public void setEncryptionCryptoClass(Class<? extends Merlin> encryptionCryptoClass)
encryptionCryptoClass
- public Crypto getEncryptionCrypto() throws WSSConfigurationException
WSSConfigurationException
- thrown if something goes wrongpublic void setEncryptionCrypto(Crypto encCrypto)
public String getEncryptionUser()
public void setEncryptionUser(String encryptionUser)
encryptionUser
- the the alias for the encryption key in the keystore as stringpublic String getEncryptionCompressionAlgorithm()
public void setEncryptionCompressionAlgorithm(String encryptionCompressionAlgorithm)
public boolean isAllowUsernameTokenNoPassword()
public void setAllowUsernameTokenNoPassword(boolean allowUsernameTokenNoPassword)
public boolean isEnableRevocation()
public void setEnableRevocation(boolean enableRevocation)
public CertStore getCrlCertStore()
public void setCrlCertStore(CertStore crlCertStore)
public Integer getTimeStampFutureTTL()
public void setTimeStampFutureTTL(Integer timeStampFutureTTL)
public Integer getUtTTL()
public void setUtTTL(Integer utTTL)
public Integer getUtFutureTTL()
public void setUtFutureTTL(Integer utFutureTTL)
public void setTimestampReplayCache(ReplayCache newCache)
public ReplayCache getTimestampReplayCache() throws WSSecurityException
WSSecurityException
public void setNonceReplayCache(ReplayCache newCache)
public ReplayCache getNonceReplayCache() throws WSSecurityException
WSSecurityException
public void setSamlOneTimeUseReplayCache(ReplayCache newCache)
public ReplayCache getSamlOneTimeUseReplayCache() throws WSSecurityException
WSSecurityException
public boolean isDisableBSPEnforcement()
public void setDisableBSPEnforcement(boolean disableBSPEnforcement)
public boolean isAllowRSA15KeyTransportAlgorithm()
public void setAllowRSA15KeyTransportAlgorithm(boolean allowRSA15KeyTransportAlgorithm)
public Integer getDerivedKeyIterations()
public void setDerivedKeyIterations(Integer derivedKeyIterations)
public boolean isUseDerivedKeyForMAC()
public void setUseDerivedKeyForMAC(boolean useDerivedKeyForMAC)
public boolean isAddUsernameTokenNonce()
public void setAddUsernameTokenNonce(boolean addUsernameTokenNonce)
public boolean isAddUsernameTokenCreated()
public void setAddUsernameTokenCreated(boolean addUsernameTokenCreated)
public CallbackHandler getSamlCallbackHandler()
public void setSamlCallbackHandler(CallbackHandler samlCallbackHandler)
public boolean isValidateSamlSubjectConfirmation()
public void setValidateSamlSubjectConfirmation(boolean validateSamlSubjectConfirmation)
public boolean isMustUnderstand()
public void setMustUnderstand(boolean mustUnderstand)
public boolean isIncludeSignatureToken()
public void setIncludeSignatureToken(boolean includeSignatureToken)
public boolean isIncludeEncryptionToken()
public void setIncludeEncryptionToken(boolean includeEncryptionToken)
public boolean isEncryptSymmetricEncryptionKey()
public void setEncryptSymmetricEncryptionKey(boolean encryptSymmetricEncrytionKey)
public void setSubjectCertConstraints(Collection<Pattern> subjectCertConstraints)
public Collection<Pattern> getSubjectCertConstraints()
public void setIssuerDNConstraints(Collection<Pattern> issuerDNPatterns)
public Collection<Pattern> getIssuerDNConstraints()
public void setAudienceRestrictions(List<String> audienceRestrictions)
public int getDerivedSignatureKeyLength()
public void setDerivedSignatureKeyLength(int derivedSignatureKeyLength)
public int getDerivedEncryptionKeyLength()
public void setDerivedEncryptionKeyLength(int derivedEncryptionKeyLength)
public boolean isUse200512Namespace()
public void setUse200512Namespace(boolean use200512Namespace)
public CallbackHandler getAttachmentCallbackHandler()
public void setAttachmentCallbackHandler(CallbackHandler attachmentCallbackHandler)
public Object getMsgContext()
public void setMsgContext(Object msgContext)
public boolean isRequireTimestampExpires()
public void setRequireTimestampExpires(boolean requireTimestampExpires)
Copyright © 2018 JBoss by Red Hat. All rights reserved.