Enum Class SADValidationException.ErrorCode

java.lang.Object
java.lang.Enum<SADValidationException.ErrorCode>
se.swedenconnect.opensaml.sweid.saml2.signservice.SADValidationException.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<SADValidationException.ErrorCode>, Constable
Enclosing class:
SADValidationException

public static enum SADValidationException.ErrorCode extends Enum<SADValidationException.ErrorCode>
Possible validation errors.
  • Enum Constant Details

    • JWT_PARSE_ERROR

      public static final SADValidationException.ErrorCode JWT_PARSE_ERROR
      The JWT or its contained JSON could not be successfully parsed.
    • BAD_SAD_FORMAT

      public static final SADValidationException.ErrorCode BAD_SAD_FORMAT
      The SAD is not correct (i.e., missing claims).
    • SIGNATURE_VALIDATION_ERROR

      public static final SADValidationException.ErrorCode SIGNATURE_VALIDATION_ERROR
      Signature validation error.
    • SAD_EXPIRED

      public static final SADValidationException.ErrorCode SAD_EXPIRED
      SAD has expired and is no longer valid.
    • VALIDATION_BAD_ISSUER

      public static final SADValidationException.ErrorCode VALIDATION_BAD_ISSUER
      Mismatching issuer - issuer of SAD is not the same as issuing IdP.
    • VALIDATION_BAD_AUDIENCE

      public static final SADValidationException.ErrorCode VALIDATION_BAD_AUDIENCE
      Mismatching audience - the receiving entity does not match the indicated audience.
    • VALIDATION_BAD_SUBJECT

      public static final SADValidationException.ErrorCode VALIDATION_BAD_SUBJECT
      Mismatching subject - the subject in the SAD does not match corresponding attribute from assertion.
    • VALIDATION_BAD_IRT

      public static final SADValidationException.ErrorCode VALIDATION_BAD_IRT
      Mismatching in-response-to - the irt claim does not match expected SADRequest ID.
    • VALIDATION_BAD_LOA

      public static final SADValidationException.ErrorCode VALIDATION_BAD_LOA
      Mismatching LoA - The LoA in the SAD does not correspond with the LoA in the assertion.
    • VALIDATION_BAD_DOCS

      public static final SADValidationException.ErrorCode VALIDATION_BAD_DOCS
      Mismatching number of documents between SAD and corresponding SADRequest.
    • VALIDATION_BAD_SIGNREQUESTID

      public static final SADValidationException.ErrorCode VALIDATION_BAD_SIGNREQUESTID
      Mismatching SignRequest ID (SAD has different value that what was expected).
    • NO_SAD_ATTRIBUTE

      public static final SADValidationException.ErrorCode NO_SAD_ATTRIBUTE
      SAD is missing from assertion.
    • MISSING_SUBJECT_ATTRIBUTE

      public static final SADValidationException.ErrorCode MISSING_SUBJECT_ATTRIBUTE
      The attribute name given in the SAD for the subject was not found in the assertion.
  • Method Details

    • values

      public static SADValidationException.ErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SADValidationException.ErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null