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
Possible validation errors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe SAD is not correct (i.e., missing claims).The JWT or its contained JSON could not be successfully parsed.The attribute name given in the SAD for the subject was not found in the assertion.SAD is missing from assertion.SAD has expired and is no longer valid.Signature validation error.Mismatching audience - the receiving entity does not match the indicated audience.Mismatching number of documents between SAD and corresponding SADRequest.Mismatching in-response-to - the irt claim does not match expected SADRequest ID.Mismatching issuer - issuer of SAD is not the same as issuing IdP.Mismatching LoA - The LoA in the SAD does not correspond with the LoA in the assertion.Mismatching SignRequest ID (SAD has different value that what was expected).Mismatching subject - the subject in the SAD does not match corresponding attribute from assertion. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static SADValidationException.ErrorCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JWT_PARSE_ERROR
The JWT or its contained JSON could not be successfully parsed. -
BAD_SAD_FORMAT
The SAD is not correct (i.e., missing claims). -
SIGNATURE_VALIDATION_ERROR
Signature validation error. -
SAD_EXPIRED
SAD has expired and is no longer valid. -
VALIDATION_BAD_ISSUER
Mismatching issuer - issuer of SAD is not the same as issuing IdP. -
VALIDATION_BAD_AUDIENCE
Mismatching audience - the receiving entity does not match the indicated audience. -
VALIDATION_BAD_SUBJECT
Mismatching subject - the subject in the SAD does not match corresponding attribute from assertion. -
VALIDATION_BAD_IRT
Mismatching in-response-to - the irt claim does not match expected SADRequest ID. -
VALIDATION_BAD_LOA
Mismatching LoA - The LoA in the SAD does not correspond with the LoA in the assertion. -
VALIDATION_BAD_DOCS
Mismatching number of documents between SAD and corresponding SADRequest. -
VALIDATION_BAD_SIGNREQUESTID
Mismatching SignRequest ID (SAD has different value that what was expected). -
NO_SAD_ATTRIBUTE
SAD is missing from assertion. -
MISSING_SUBJECT_ATTRIBUTE
The attribute name given in the SAD for the subject was not found in the assertion.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-