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(@Nullable EWSSVersion eWSSVersion, @Nullable com.helger.collection.commons.ICommonsList<String> aX509SignElement, @Nullable com.helger.collection.commons.ICommonsList<String> aX509SignAttachment, @Nullable String sX509SignatureCertificate, @Nullable ECryptoAlgorithmSignDigest eX509SignatureHashFunction, @Nullable ECryptoAlgorithmSign sX509SignatureAlgorithm, @Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptElement, @Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptAttachment, @Nullable String sX509EncryptionCertificate, @Nullable ECryptoAlgorithmCrypt sX509EncryptionAlgorithm, @Nullable Integer aX509EncryptionMinimumStrength, @Nullable String sUsernameTokenUsername, @Nullable String sUsernameTokenPassword, @NonNull com.helger.base.state.ETriState eUsernameTokenDigest, @NonNull com.helger.base.state.ETriState eUsernameTokenNonce, @NonNull com.helger.base.state.ETriState eUsernameTokenCreated, @NonNull com.helger.base.state.ETriState ePModeAuthorize, @NonNull com.helger.base.state.ETriState eSendReceipt, @Nullable EPModeSendReceiptReplyPattern eSendReceiptReplyPattern, @NonNull com.helger.base.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 @NonNull com.helger.collection.commons.ICommonsList<String> final @NonNull com.helger.collection.commons.ICommonsList<String> final @NonNull com.helger.collection.commons.ICommonsList<String> final @NonNull com.helger.collection.commons.ICommonsList<String> final @Nullable EPModeSendReceiptReplyPatternfinal @Nullable Stringfinal @Nullable Stringfinal @Nullable Stringfinal @Nullable EWSSVersionfinal @Nullable Stringfinal @Nullable ECryptoAlgorithmCryptfinal @Nullable Stringfinal @Nullable Stringfinal @Nullable Integerfinal @Nullable ECryptoAlgorithmSignfinal @Nullable Stringfinal @Nullable Stringfinal @Nullable ECryptoAlgorithmSignDigestfinal @Nullable StringinthashCode()final booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanbooleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal @NonNull com.helger.base.state.EChangesetPModeAuthorize(boolean bPModeAuthorize) final @NonNull com.helger.base.state.EChangesetPModeAuthorize(@NonNull com.helger.base.state.ETriState ePModeAuthorize) final @NonNull com.helger.base.state.EChangesetSendReceipt(boolean bSendReceipt) final @NonNull com.helger.base.state.EChangesetSendReceipt(@NonNull com.helger.base.state.ETriState eSendReceipt) final @NonNull com.helger.base.state.EChangesetSendReceiptNonRepudiation(boolean bSendReceiptNonRepudiation) final @NonNull com.helger.base.state.EChangesetSendReceiptNonRepudiation(@NonNull com.helger.base.state.ETriState eSendReceiptNonRepudiation) final @NonNull com.helger.base.state.EChangesetSendReceiptReplyPattern(@Nullable EPModeSendReceiptReplyPattern eSendReceiptReplyPattern) final @NonNull com.helger.base.state.EChangesetUsernameTokenCreated(boolean bUsernameTokenCreated) final @NonNull com.helger.base.state.EChangesetUsernameTokenCreated(@NonNull com.helger.base.state.ETriState eUsernameTokenCreated) final @NonNull com.helger.base.state.EChangesetUsernameTokenDigest(boolean bUsernameTokenDigest) final @NonNull com.helger.base.state.EChangesetUsernameTokenDigest(@NonNull com.helger.base.state.ETriState eUsernameTokenDigest) final @NonNull com.helger.base.state.EChangesetUsernameTokenNonce(boolean bUsernameTokenNonce) final @NonNull com.helger.base.state.EChangesetUsernameTokenNonce(@NonNull com.helger.base.state.ETriState eUsernameTokenNonce) final @NonNull com.helger.base.state.EChangesetUsernameTokenPassword(@Nullable String sUsernameTokenPassword) final @NonNull com.helger.base.state.EChangesetUsernameTokenUsername(@Nullable String sUsernameTokenUsername) final @NonNull com.helger.base.state.EChangesetWSSVersion(@Nullable EWSSVersion eWSSVersion) Set the WS Security version to use.final @NonNull com.helger.base.state.EChangesetX509EncryptionAlgorithm(@Nullable ECryptoAlgorithmCrypt eX509EncryptionAlgorithm) final @NonNull com.helger.base.state.EChangesetX509EncryptionCertificate(@Nullable String sX509EncryptionCertificate) final @NonNull com.helger.base.state.EChangesetX509EncryptionEncryptAttachments(@Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptAttachment) final @NonNull com.helger.base.state.EChangesetX509EncryptionEncryptElements(@Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptElement) final @NonNull com.helger.base.state.EChangesetX509EncryptionMinimumStrength(int nX509EncryptionMinimumStrength) final @NonNull com.helger.base.state.EChangesetX509EncryptionMinimumStrength(@Nullable Integer aX509EncryptionMinimumStrength) final @NonNull com.helger.base.state.EChangesetX509SignAttachments(@Nullable com.helger.collection.commons.ICommonsList<String> aX509SignAttachment) final @NonNull com.helger.base.state.EChangesetX509SignatureAlgorithm(@Nullable ECryptoAlgorithmSign eX509SignatureAlgorithm) final @NonNull com.helger.base.state.EChangesetX509SignatureCertificate(@Nullable String sX509SignatureCertificate) final @NonNull com.helger.base.state.EChangesetX509SignatureHashFunction(@Nullable ECryptoAlgorithmSignDigest eX509SignatureHashFunction) final @NonNull com.helger.base.state.EChangesetX509SignElements(@Nullable com.helger.collection.commons.ICommonsList<String> aX509SignElement) toString()final @NonNull com.helger.collection.commons.ICommonsList<String> final @NonNull com.helger.collection.commons.ICommonsList<String> final @NonNull com.helger.collection.commons.ICommonsList<String> final @NonNull com.helger.collection.commons.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.collection.commons.ICommonsList<String> aX509SignElement, @Nullable com.helger.collection.commons.ICommonsList<String> aX509SignAttachment, @Nullable String sX509SignatureCertificate, @Nullable ECryptoAlgorithmSignDigest eX509SignatureHashFunction, @Nullable ECryptoAlgorithmSign sX509SignatureAlgorithm, @Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptElement, @Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptAttachment, @Nullable String sX509EncryptionCertificate, @Nullable ECryptoAlgorithmCrypt sX509EncryptionAlgorithm, @Nullable Integer aX509EncryptionMinimumStrength, @Nullable String sUsernameTokenUsername, @Nullable String sUsernameTokenPassword, @NonNull com.helger.base.state.ETriState eUsernameTokenDigest, @NonNull com.helger.base.state.ETriState eUsernameTokenNonce, @NonNull com.helger.base.state.ETriState eUsernameTokenCreated, @NonNull com.helger.base.state.ETriState ePModeAuthorize, @NonNull com.helger.base.state.ETriState eSendReceipt, @Nullable EPModeSendReceiptReplyPattern eSendReceiptReplyPattern, @NonNull com.helger.base.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
public final @NonNull com.helger.base.state.EChange setWSSVersion(@Nullable EWSSVersion eWSSVersion) Set the WS Security version to use.- Parameters:
eWSSVersion- The version to use. May benull.- Returns:
EChange.
-
x509SignElements
@ReturnsMutableObject public final @NonNull com.helger.collection.commons.ICommonsList<String> x509SignElements() -
getAllX509SignElements
@ReturnsMutableCopy public final @NonNull com.helger.collection.commons.ICommonsList<String> getAllX509SignElements() -
setX509SignElements
public final @NonNull com.helger.base.state.EChange setX509SignElements(@Nullable com.helger.collection.commons.ICommonsList<String> aX509SignElement) -
x509SignAttachments
@ReturnsMutableObject public final @NonNull com.helger.collection.commons.ICommonsList<String> x509SignAttachments() -
getAllX509SignAttachments
@ReturnsMutableCopy public final @NonNull com.helger.collection.commons.ICommonsList<String> getAllX509SignAttachments() -
setX509SignAttachments
public final @NonNull com.helger.base.state.EChange setX509SignAttachments(@Nullable com.helger.collection.commons.ICommonsList<String> aX509SignAttachment) -
getX509SignatureCertificate
-
hasX509SignatureCertificate
public final boolean hasX509SignatureCertificate() -
setX509SignatureCertificate
public final @NonNull com.helger.base.state.EChange setX509SignatureCertificate(@Nullable String sX509SignatureCertificate) -
getX509SignatureHashFunction
-
hasX509SignatureHashFunction
public boolean hasX509SignatureHashFunction() -
getX509SignatureHashFunctionID
-
setX509SignatureHashFunction
public final @NonNull com.helger.base.state.EChange setX509SignatureHashFunction(@Nullable ECryptoAlgorithmSignDigest eX509SignatureHashFunction) -
getX509SignatureAlgorithm
-
hasX509SignatureAlgorithm
public final boolean hasX509SignatureAlgorithm() -
getX509SignatureAlgorithmID
-
setX509SignatureAlgorithm
public final @NonNull com.helger.base.state.EChange setX509SignatureAlgorithm(@Nullable ECryptoAlgorithmSign eX509SignatureAlgorithm) -
x509EncryptionEncryptElements
@ReturnsMutableObject public final @NonNull com.helger.collection.commons.ICommonsList<String> x509EncryptionEncryptElements() -
getAllX509EncryptionEncryptElements
@ReturnsMutableCopy public final @NonNull com.helger.collection.commons.ICommonsList<String> getAllX509EncryptionEncryptElements() -
setX509EncryptionEncryptElements
public final @NonNull com.helger.base.state.EChange setX509EncryptionEncryptElements(@Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptElement) -
x509EncryptionEncryptAttachments
@ReturnsMutableObject public final @NonNull com.helger.collection.commons.ICommonsList<String> x509EncryptionEncryptAttachments() -
getAllX509EncryptionEncryptAttachments
@ReturnsMutableCopy public final @NonNull com.helger.collection.commons.ICommonsList<String> getAllX509EncryptionEncryptAttachments() -
setX509EncryptionEncryptAttachments
public final @NonNull com.helger.base.state.EChange setX509EncryptionEncryptAttachments(@Nullable com.helger.collection.commons.ICommonsList<String> aX509EncryptionEncryptAttachment) -
getX509EncryptionCertificate
-
hasX509EncryptionCertificate
public final boolean hasX509EncryptionCertificate() -
setX509EncryptionCertificate
public final @NonNull com.helger.base.state.EChange setX509EncryptionCertificate(@Nullable String sX509EncryptionCertificate) -
getX509EncryptionAlgorithm
-
hasX509EncryptionAlgorithm
public final boolean hasX509EncryptionAlgorithm() -
getX509EncryptionAlgorithmID
-
setX509EncryptionAlgorithm
public final @NonNull com.helger.base.state.EChange setX509EncryptionAlgorithm(@Nullable ECryptoAlgorithmCrypt eX509EncryptionAlgorithm) -
getX509EncryptionMinimumStrength
-
hasX509EncryptionMinimumStrength
public final boolean hasX509EncryptionMinimumStrength() -
setX509EncryptionMinimumStrength
public final @NonNull com.helger.base.state.EChange setX509EncryptionMinimumStrength(int nX509EncryptionMinimumStrength) -
setX509EncryptionMinimumStrength
public final @NonNull com.helger.base.state.EChange setX509EncryptionMinimumStrength(@Nullable Integer aX509EncryptionMinimumStrength) -
getUsernameTokenUsername
-
hasUsernameTokenUsername
public final boolean hasUsernameTokenUsername() -
setUsernameTokenUsername
public final @NonNull com.helger.base.state.EChange setUsernameTokenUsername(@Nullable String sUsernameTokenUsername) -
getUsernameTokenPassword
-
hasUsernameTokenPassword
public final boolean hasUsernameTokenPassword() -
setUsernameTokenPassword
public final @NonNull com.helger.base.state.EChange setUsernameTokenPassword(@Nullable String sUsernameTokenPassword) -
isUsernameTokenDigestDefined
public final boolean isUsernameTokenDigestDefined() -
isUsernameTokenDigest
public final boolean isUsernameTokenDigest() -
setUsernameTokenDigest
public final @NonNull com.helger.base.state.EChange setUsernameTokenDigest(boolean bUsernameTokenDigest) -
setUsernameTokenDigest
public final @NonNull com.helger.base.state.EChange setUsernameTokenDigest(@NonNull com.helger.base.state.ETriState eUsernameTokenDigest) -
isUsernameTokenNonceDefined
public final boolean isUsernameTokenNonceDefined() -
isUsernameTokenNonce
public final boolean isUsernameTokenNonce() -
setUsernameTokenNonce
public final @NonNull com.helger.base.state.EChange setUsernameTokenNonce(boolean bUsernameTokenNonce) -
setUsernameTokenNonce
public final @NonNull com.helger.base.state.EChange setUsernameTokenNonce(@NonNull com.helger.base.state.ETriState eUsernameTokenNonce) -
isUsernameTokenCreatedDefined
public final boolean isUsernameTokenCreatedDefined() -
isUsernameTokenCreated
public final boolean isUsernameTokenCreated() -
setUsernameTokenCreated
public final @NonNull com.helger.base.state.EChange setUsernameTokenCreated(boolean bUsernameTokenCreated) -
setUsernameTokenCreated
public final @NonNull com.helger.base.state.EChange setUsernameTokenCreated(@NonNull com.helger.base.state.ETriState eUsernameTokenCreated) -
isPModeAuthorizeDefined
public final boolean isPModeAuthorizeDefined() -
isPModeAuthorize
public final boolean isPModeAuthorize() -
setPModeAuthorize
public final @NonNull com.helger.base.state.EChange setPModeAuthorize(boolean bPModeAuthorize) -
setPModeAuthorize
public final @NonNull com.helger.base.state.EChange setPModeAuthorize(@NonNull com.helger.base.state.ETriState ePModeAuthorize) -
isSendReceiptDefined
public final boolean isSendReceiptDefined() -
isSendReceipt
public final boolean isSendReceipt() -
setSendReceipt
public final @NonNull com.helger.base.state.EChange setSendReceipt(boolean bSendReceipt) -
setSendReceipt
public final @NonNull com.helger.base.state.EChange setSendReceipt(@NonNull com.helger.base.state.ETriState eSendReceipt) -
getSendReceiptReplyPattern
-
getSendReceiptReplyPatternID
-
hasSendReceiptReplyPattern
public final boolean hasSendReceiptReplyPattern() -
setSendReceiptReplyPattern
public final @NonNull com.helger.base.state.EChange setSendReceiptReplyPattern(@Nullable EPModeSendReceiptReplyPattern eSendReceiptReplyPattern) -
isSendReceiptNonRepudiationDefined
public final boolean isSendReceiptNonRepudiationDefined() -
isSendReceiptNonRepudiation
public final boolean isSendReceiptNonRepudiation() -
setSendReceiptNonRepudiation
public final @NonNull com.helger.base.state.EChange setSendReceiptNonRepudiation(boolean bSendReceiptNonRepudiation) -
setSendReceiptNonRepudiation
public final @NonNull com.helger.base.state.EChange setSendReceiptNonRepudiation(@NonNull com.helger.base.state.ETriState eSendReceiptNonRepudiation) -
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
-