Class PModeLegSecurity
java.lang.Object
com.helger.phase4.model.pmode.leg.PModeLegSecurity
- All Implemented Interfaces:
Serializable
@NotThreadSafe
@MustImplementEqualsAndHashcode
public class PModeLegSecurity
extends Object
implements Serializable
PMode security part.
- Author:
- Philip Helger
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final boolean -
Constructor Summary
ConstructorsConstructorDescriptionPModeLegSecurity(EWSSVersion eWSSVersion, com.helger.commons.collection.impl.ICommonsList<String> aX509SignElement, com.helger.commons.collection.impl.ICommonsList<String> aX509SignAttachment, String sX509SignatureCertificate, ECryptoAlgorithmSignDigest eX509SignatureHashFunction, ECryptoAlgorithmSign sX509SignatureAlgorithm, com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptElement, com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptAttachment, String sX509EncryptionCertificate, ECryptoAlgorithmCrypt sX509EncryptionAlgorithm, Integer aX509EncryptionMinimumStrength, String sUsernameTokenUsername, String sUsernameTokenPassword, com.helger.commons.state.ETriState eUsernameTokenDigest, com.helger.commons.state.ETriState eUsernameTokenNonce, com.helger.commons.state.ETriState eUsernameTokenCreated, com.helger.commons.state.ETriState ePModeAuthorize, com.helger.commons.state.ETriState eSendReceipt, EPModeSendReceiptReplyPattern eSendReceiptReplyPattern, com.helger.commons.state.ETriState eSendReceiptNonRepudiation) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidSet all field that affect encryption to "no encryption".final voidSet all field that affect signing to "no signing".final voidSet all field that affect username token to "don't use".booleanfinal com.helger.commons.collection.impl.ICommonsList<String> final com.helger.commons.collection.impl.ICommonsList<String> final com.helger.commons.collection.impl.ICommonsList<String> final com.helger.commons.collection.impl.ICommonsList<String> final Stringfinal Stringfinal Stringfinal EWSSVersionfinal Stringfinal ECryptoAlgorithmCryptfinal Stringfinal Stringfinal Integerfinal ECryptoAlgorithmSignfinal Stringfinal Stringfinal StringinthashCode()final booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanbooleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal com.helger.commons.state.EChangesetPModeAuthorize(boolean bPModeAuthorize) final com.helger.commons.state.EChangesetPModeAuthorize(com.helger.commons.state.ETriState ePModeAuthorize) final com.helger.commons.state.EChangesetSendReceipt(boolean bSendReceipt) final com.helger.commons.state.EChangesetSendReceipt(com.helger.commons.state.ETriState eSendReceipt) final com.helger.commons.state.EChangesetSendReceiptNonRepudiation(boolean bSendReceiptNonRepudiation) final com.helger.commons.state.EChangesetSendReceiptNonRepudiation(com.helger.commons.state.ETriState eSendReceiptNonRepudiation) final com.helger.commons.state.EChangesetSendReceiptReplyPattern(EPModeSendReceiptReplyPattern eSendReceiptReplyPattern) final com.helger.commons.state.EChangesetUsernameTokenCreated(boolean bUsernameTokenCreated) final com.helger.commons.state.EChangesetUsernameTokenCreated(com.helger.commons.state.ETriState eUsernameTokenCreated) final com.helger.commons.state.EChangesetUsernameTokenDigest(boolean bUsernameTokenDigest) final com.helger.commons.state.EChangesetUsernameTokenDigest(com.helger.commons.state.ETriState eUsernameTokenDigest) final com.helger.commons.state.EChangesetUsernameTokenNonce(boolean bUsernameTokenNonce) final com.helger.commons.state.EChangesetUsernameTokenNonce(com.helger.commons.state.ETriState eUsernameTokenNonce) final com.helger.commons.state.EChangesetUsernameTokenPassword(String sUsernameTokenPassword) final com.helger.commons.state.EChangesetUsernameTokenUsername(String sUsernameTokenUsername) final com.helger.commons.state.EChangesetWSSVersion(EWSSVersion eWSSVersion) Set the WS Security version to use.final com.helger.commons.state.EChangesetX509EncryptionAlgorithm(ECryptoAlgorithmCrypt eX509EncryptionAlgorithm) final com.helger.commons.state.EChangesetX509EncryptionCertificate(String sX509EncryptionCertificate) final com.helger.commons.state.EChangesetX509EncryptionEncryptAttachments(com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptAttachment) final com.helger.commons.state.EChangesetX509EncryptionEncryptElements(com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptElement) final com.helger.commons.state.EChangesetX509EncryptionMinimumStrength(int nX509EncryptionMinimumStrength) final com.helger.commons.state.EChangesetX509EncryptionMinimumStrength(Integer aX509EncryptionMinimumStrength) final com.helger.commons.state.EChangesetX509SignAttachments(com.helger.commons.collection.impl.ICommonsList<String> aX509SignAttachment) final com.helger.commons.state.EChangesetX509SignatureAlgorithm(ECryptoAlgorithmSign eX509SignatureAlgorithm) final com.helger.commons.state.EChangesetX509SignatureCertificate(String sX509SignatureCertificate) final com.helger.commons.state.EChangesetX509SignatureHashFunction(ECryptoAlgorithmSignDigest eX509SignatureHashFunction) final com.helger.commons.state.EChangesetX509SignElements(com.helger.commons.collection.impl.ICommonsList<String> aX509SignElement) toString()final com.helger.commons.collection.impl.ICommonsList<String> final com.helger.commons.collection.impl.ICommonsList<String> final com.helger.commons.collection.impl.ICommonsList<String> final com.helger.commons.collection.impl.ICommonsList<String>
-
Field Details
-
DEFAULT_USERNAME_TOKEN_DIGEST
public static final boolean DEFAULT_USERNAME_TOKEN_DIGEST- See Also:
-
DEFAULT_USERNAME_TOKEN_NONCE
public static final boolean DEFAULT_USERNAME_TOKEN_NONCE- See Also:
-
DEFAULT_USERNAME_TOKEN_CREATED
public static final boolean DEFAULT_USERNAME_TOKEN_CREATED- See Also:
-
DEFAULT_PMODE_AUTHORIZE
public static final boolean DEFAULT_PMODE_AUTHORIZE- See Also:
-
DEFAULT_X509_SIGN
public static final boolean DEFAULT_X509_SIGN- See Also:
-
DEFAULT_X509_ENCRYPTION_ENCRYPT
public static final boolean DEFAULT_X509_ENCRYPTION_ENCRYPT- See Also:
-
DEFAULT_SEND_RECEIPT
public static final boolean DEFAULT_SEND_RECEIPT- See Also:
-
DEFAULT_SEND_RECEIPT_NON_REPUDIATION
public static final boolean DEFAULT_SEND_RECEIPT_NON_REPUDIATION- See Also:
-
-
Constructor Details
-
PModeLegSecurity
public PModeLegSecurity() -
PModeLegSecurity
public PModeLegSecurity(@Nullable EWSSVersion eWSSVersion, @Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509SignElement, @Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509SignAttachment, @Nullable String sX509SignatureCertificate, @Nullable ECryptoAlgorithmSignDigest eX509SignatureHashFunction, @Nullable ECryptoAlgorithmSign sX509SignatureAlgorithm, @Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptElement, @Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptAttachment, @Nullable String sX509EncryptionCertificate, @Nullable ECryptoAlgorithmCrypt sX509EncryptionAlgorithm, @Nullable Integer aX509EncryptionMinimumStrength, @Nullable String sUsernameTokenUsername, @Nullable String sUsernameTokenPassword, @Nonnull com.helger.commons.state.ETriState eUsernameTokenDigest, @Nonnull com.helger.commons.state.ETriState eUsernameTokenNonce, @Nonnull com.helger.commons.state.ETriState eUsernameTokenCreated, @Nonnull com.helger.commons.state.ETriState ePModeAuthorize, @Nonnull com.helger.commons.state.ETriState eSendReceipt, @Nullable EPModeSendReceiptReplyPattern eSendReceiptReplyPattern, @Nonnull com.helger.commons.state.ETriState eSendReceiptNonRepudiation)
-
-
Method Details
-
getWSSVersion
- Returns:
- The version of WS Security to use. May be
null.
-
hasWSSVersion
public final boolean hasWSSVersion()- Returns:
trueif a WS Security version is defined,falseif not.
-
getWSSVersionAsString
- Returns:
- The WS Security version string to use or
nullif none is defined.
-
setWSSVersion
@Nonnull public final com.helger.commons.state.EChange setWSSVersion(@Nullable EWSSVersion eWSSVersion) Set the WS Security version to use.- Parameters:
eWSSVersion- The version to use. May benull.- Returns:
EChange.
-
x509SignElements
-
getAllX509SignElements
-
setX509SignElements
-
x509SignAttachments
-
getAllX509SignAttachments
-
setX509SignAttachments
-
getX509SignatureCertificate
-
hasX509SignatureCertificate
public final boolean hasX509SignatureCertificate() -
setX509SignatureCertificate
-
getX509SignatureHashFunction
-
hasX509SignatureHashFunction
public boolean hasX509SignatureHashFunction() -
getX509SignatureHashFunctionID
-
setX509SignatureHashFunction
@Nonnull public final com.helger.commons.state.EChange setX509SignatureHashFunction(@Nullable ECryptoAlgorithmSignDigest eX509SignatureHashFunction) -
getX509SignatureAlgorithm
-
hasX509SignatureAlgorithm
public final boolean hasX509SignatureAlgorithm() -
getX509SignatureAlgorithmID
-
setX509SignatureAlgorithm
@Nonnull public final com.helger.commons.state.EChange setX509SignatureAlgorithm(@Nullable ECryptoAlgorithmSign eX509SignatureAlgorithm) -
x509EncryptionEncryptElements
-
getAllX509EncryptionEncryptElements
-
setX509EncryptionEncryptElements
-
x509EncryptionEncryptAttachments
-
getAllX509EncryptionEncryptAttachments
-
setX509EncryptionEncryptAttachments
-
getX509EncryptionCertificate
-
hasX509EncryptionCertificate
public final boolean hasX509EncryptionCertificate() -
setX509EncryptionCertificate
-
getX509EncryptionAlgorithm
-
hasX509EncryptionAlgorithm
public final boolean hasX509EncryptionAlgorithm() -
getX509EncryptionAlgorithmID
-
setX509EncryptionAlgorithm
@Nonnull public final com.helger.commons.state.EChange setX509EncryptionAlgorithm(@Nullable ECryptoAlgorithmCrypt eX509EncryptionAlgorithm) -
getX509EncryptionMinimumStrength
-
hasX509EncryptionMinimumStrength
public final boolean hasX509EncryptionMinimumStrength() -
setX509EncryptionMinimumStrength
@Nonnull public final com.helger.commons.state.EChange setX509EncryptionMinimumStrength(int nX509EncryptionMinimumStrength) -
setX509EncryptionMinimumStrength
-
getUsernameTokenUsername
-
hasUsernameTokenUsername
public final boolean hasUsernameTokenUsername() -
setUsernameTokenUsername
-
getUsernameTokenPassword
-
hasUsernameTokenPassword
public final boolean hasUsernameTokenPassword() -
setUsernameTokenPassword
-
isUsernameTokenDigestDefined
public final boolean isUsernameTokenDigestDefined() -
isUsernameTokenDigest
public final boolean isUsernameTokenDigest() -
setUsernameTokenDigest
@Nonnull public final com.helger.commons.state.EChange setUsernameTokenDigest(boolean bUsernameTokenDigest) -
setUsernameTokenDigest
-
isUsernameTokenNonceDefined
public final boolean isUsernameTokenNonceDefined() -
isUsernameTokenNonce
public final boolean isUsernameTokenNonce() -
setUsernameTokenNonce
@Nonnull public final com.helger.commons.state.EChange setUsernameTokenNonce(boolean bUsernameTokenNonce) -
setUsernameTokenNonce
-
isUsernameTokenCreatedDefined
public final boolean isUsernameTokenCreatedDefined() -
isUsernameTokenCreated
public final boolean isUsernameTokenCreated() -
setUsernameTokenCreated
@Nonnull public final com.helger.commons.state.EChange setUsernameTokenCreated(boolean bUsernameTokenCreated) -
setUsernameTokenCreated
-
isPModeAuthorizeDefined
public final boolean isPModeAuthorizeDefined() -
isPModeAuthorize
public final boolean isPModeAuthorize() -
setPModeAuthorize
-
setPModeAuthorize
-
isSendReceiptDefined
public final boolean isSendReceiptDefined() -
isSendReceipt
public final boolean isSendReceipt() -
setSendReceipt
-
setSendReceipt
-
getSendReceiptReplyPattern
-
getSendReceiptReplyPatternID
-
hasSendReceiptReplyPattern
public final boolean hasSendReceiptReplyPattern() -
setSendReceiptReplyPattern
@Nonnull public final com.helger.commons.state.EChange setSendReceiptReplyPattern(@Nullable EPModeSendReceiptReplyPattern eSendReceiptReplyPattern) -
isSendReceiptNonRepudiationDefined
public final boolean isSendReceiptNonRepudiationDefined() -
isSendReceiptNonRepudiation
public final boolean isSendReceiptNonRepudiation() -
setSendReceiptNonRepudiation
@Nonnull public final com.helger.commons.state.EChange setSendReceiptNonRepudiation(boolean bSendReceiptNonRepudiation) -
setSendReceiptNonRepudiation
-
disableSigning
public final void disableSigning()Set all field that affect signing to "no signing".- See Also:
-
disableEncryption
public final void disableEncryption()Set all field that affect encryption to "no encryption".- See Also:
-
disableUsernameToken
public final void disableUsernameToken()Set all field that affect username token to "don't use".- Since:
- 0.13.1
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-