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 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

  • Method Details

    • getWSSVersion

      @Nullable public final EWSSVersion getWSSVersion()
      Returns:
      The version of WS Security to use. May be null.
    • hasWSSVersion

      public final boolean hasWSSVersion()
      Returns:
      true if a WS Security version is defined, false if not.
    • getWSSVersionAsString

      @Nullable public final String getWSSVersionAsString()
      Returns:
      The WS Security version string to use or null if 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 be null.
      Returns:
      EChange.
    • x509SignElements

      @Nonnull @ReturnsMutableObject public final com.helger.commons.collection.impl.ICommonsList<String> x509SignElements()
    • getAllX509SignElements

      @Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<String> getAllX509SignElements()
    • setX509SignElements

      @Nonnull public final com.helger.commons.state.EChange setX509SignElements(@Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509SignElement)
    • x509SignAttachments

      @Nonnull @ReturnsMutableObject public final com.helger.commons.collection.impl.ICommonsList<String> x509SignAttachments()
    • getAllX509SignAttachments

      @Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<String> getAllX509SignAttachments()
    • setX509SignAttachments

      @Nonnull public final com.helger.commons.state.EChange setX509SignAttachments(@Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509SignAttachment)
    • getX509SignatureCertificate

      @Nullable public final String getX509SignatureCertificate()
    • hasX509SignatureCertificate

      public final boolean hasX509SignatureCertificate()
    • setX509SignatureCertificate

      @Nonnull public final com.helger.commons.state.EChange setX509SignatureCertificate(@Nullable String sX509SignatureCertificate)
    • getX509SignatureHashFunction

      @Nullable public final ECryptoAlgorithmSignDigest getX509SignatureHashFunction()
    • hasX509SignatureHashFunction

      public boolean hasX509SignatureHashFunction()
    • getX509SignatureHashFunctionID

      @Nullable public final String getX509SignatureHashFunctionID()
    • setX509SignatureHashFunction

      @Nonnull public final com.helger.commons.state.EChange setX509SignatureHashFunction(@Nullable ECryptoAlgorithmSignDigest eX509SignatureHashFunction)
    • getX509SignatureAlgorithm

      @Nullable public final ECryptoAlgorithmSign getX509SignatureAlgorithm()
    • hasX509SignatureAlgorithm

      public final boolean hasX509SignatureAlgorithm()
    • getX509SignatureAlgorithmID

      @Nullable public final String getX509SignatureAlgorithmID()
    • setX509SignatureAlgorithm

      @Nonnull public final com.helger.commons.state.EChange setX509SignatureAlgorithm(@Nullable ECryptoAlgorithmSign eX509SignatureAlgorithm)
    • x509EncryptionEncryptElements

      @Nonnull @ReturnsMutableObject public final com.helger.commons.collection.impl.ICommonsList<String> x509EncryptionEncryptElements()
    • getAllX509EncryptionEncryptElements

      @Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<String> getAllX509EncryptionEncryptElements()
    • setX509EncryptionEncryptElements

      @Nonnull public final com.helger.commons.state.EChange setX509EncryptionEncryptElements(@Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptElement)
    • x509EncryptionEncryptAttachments

      @Nonnull @ReturnsMutableObject public final com.helger.commons.collection.impl.ICommonsList<String> x509EncryptionEncryptAttachments()
    • getAllX509EncryptionEncryptAttachments

      @Nonnull @ReturnsMutableCopy public final com.helger.commons.collection.impl.ICommonsList<String> getAllX509EncryptionEncryptAttachments()
    • setX509EncryptionEncryptAttachments

      @Nonnull public final com.helger.commons.state.EChange setX509EncryptionEncryptAttachments(@Nullable com.helger.commons.collection.impl.ICommonsList<String> aX509EncryptionEncryptAttachment)
    • getX509EncryptionCertificate

      @Nullable public final String getX509EncryptionCertificate()
    • hasX509EncryptionCertificate

      public final boolean hasX509EncryptionCertificate()
    • setX509EncryptionCertificate

      @Nonnull public final com.helger.commons.state.EChange setX509EncryptionCertificate(@Nullable String sX509EncryptionCertificate)
    • getX509EncryptionAlgorithm

      @Nullable public final ECryptoAlgorithmCrypt getX509EncryptionAlgorithm()
    • hasX509EncryptionAlgorithm

      public final boolean hasX509EncryptionAlgorithm()
    • getX509EncryptionAlgorithmID

      @Nullable public final String getX509EncryptionAlgorithmID()
    • setX509EncryptionAlgorithm

      @Nonnull public final com.helger.commons.state.EChange setX509EncryptionAlgorithm(@Nullable ECryptoAlgorithmCrypt eX509EncryptionAlgorithm)
    • getX509EncryptionMinimumStrength

      @Nullable public final Integer getX509EncryptionMinimumStrength()
    • hasX509EncryptionMinimumStrength

      public final boolean hasX509EncryptionMinimumStrength()
    • setX509EncryptionMinimumStrength

      @Nonnull public final com.helger.commons.state.EChange setX509EncryptionMinimumStrength(@Nullable Integer aX509EncryptionMinimumStrength)
    • getUsernameTokenUsername

      @Nullable public final String getUsernameTokenUsername()
    • hasUsernameTokenUsername

      public final boolean hasUsernameTokenUsername()
    • setUsernameTokenUsername

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenUsername(@Nullable String sUsernameTokenUsername)
    • getUsernameTokenPassword

      @Nullable public final String getUsernameTokenPassword()
    • hasUsernameTokenPassword

      public final boolean hasUsernameTokenPassword()
    • setUsernameTokenPassword

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenPassword(@Nullable String sUsernameTokenPassword)
    • isUsernameTokenDigestDefined

      public final boolean isUsernameTokenDigestDefined()
    • isUsernameTokenDigest

      public final boolean isUsernameTokenDigest()
    • setUsernameTokenDigest

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenDigest(boolean bUsernameTokenDigest)
    • setUsernameTokenDigest

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenDigest(@Nonnull com.helger.commons.state.ETriState eUsernameTokenDigest)
    • isUsernameTokenNonceDefined

      public final boolean isUsernameTokenNonceDefined()
    • isUsernameTokenNonce

      public final boolean isUsernameTokenNonce()
    • setUsernameTokenNonce

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenNonce(boolean bUsernameTokenNonce)
    • setUsernameTokenNonce

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenNonce(@Nonnull com.helger.commons.state.ETriState eUsernameTokenNonce)
    • isUsernameTokenCreatedDefined

      public final boolean isUsernameTokenCreatedDefined()
    • isUsernameTokenCreated

      public final boolean isUsernameTokenCreated()
    • setUsernameTokenCreated

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenCreated(boolean bUsernameTokenCreated)
    • setUsernameTokenCreated

      @Nonnull public final com.helger.commons.state.EChange setUsernameTokenCreated(@Nonnull com.helger.commons.state.ETriState eUsernameTokenCreated)
    • isPModeAuthorizeDefined

      public final boolean isPModeAuthorizeDefined()
    • isPModeAuthorize

      public final boolean isPModeAuthorize()
    • setPModeAuthorize

      @Nonnull public final com.helger.commons.state.EChange setPModeAuthorize(boolean bPModeAuthorize)
    • setPModeAuthorize

      @Nonnull public final com.helger.commons.state.EChange setPModeAuthorize(@Nonnull com.helger.commons.state.ETriState ePModeAuthorize)
    • isSendReceiptDefined

      public final boolean isSendReceiptDefined()
    • isSendReceipt

      public final boolean isSendReceipt()
    • setSendReceipt

      @Nonnull public final com.helger.commons.state.EChange setSendReceipt(boolean bSendReceipt)
    • setSendReceipt

      @Nonnull public final com.helger.commons.state.EChange setSendReceipt(@Nonnull com.helger.commons.state.ETriState eSendReceipt)
    • getSendReceiptReplyPattern

      @Nullable public final EPModeSendReceiptReplyPattern getSendReceiptReplyPattern()
    • getSendReceiptReplyPatternID

      @Nullable public final String 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

      @Nonnull public final com.helger.commons.state.EChange setSendReceiptNonRepudiation(@Nonnull com.helger.commons.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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object