Enum SADValidationException.ErrorCode
- java.lang.Object
-
- java.lang.Enum<SADValidationException.ErrorCode>
-
- se.litsec.swedisheid.opensaml.saml2.signservice.SADValidationException.ErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<SADValidationException.ErrorCode>
- Enclosing class:
- SADValidationException
public static enum SADValidationException.ErrorCode extends Enum<SADValidationException.ErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_SAD_FORMATThe SAD is not correct (i.e., missing claims).JWT_PARSE_ERRORThe JWT or its contained JSON could not be successfully parsed.MISSING_SUBJECT_ATTRIBUTEThe attribute name given in the SAD for the subject was not found in the assertion.NO_SAD_ATTRIBUTESAD is missing from assertion.SAD_EXPIREDSAD has expired and is no longer valid.SIGNATURE_VALIDATION_ERRORSignature validation error.VALIDATION_BAD_AUDIENCEMismatching audience - the receiving entity does not match the indicated audience.VALIDATION_BAD_DOCSMismatching number of documents between SAD and corresponding SADRequest.VALIDATION_BAD_IRTMismatching in-response-to - the irt claim does not match expected SADRequest ID.VALIDATION_BAD_ISSUERMismatching issuer - issuer of SAD is not the same as issuing IdP.VALIDATION_BAD_LOAMismatching LoA - The LoA in the SAD does not correspond with the LoA in the assertion.VALIDATION_BAD_SIGNREQUESTIDMismatching SignRequest ID (SAD has different value that what was expected).VALIDATION_BAD_SUBJECTMismatching subject - the subject in the SAD does not match corresponding attribute from assertion.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SADValidationException.ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static SADValidationException.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static SADValidationException.ErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SADValidationException.ErrorCode c : SADValidationException.ErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SADValidationException.ErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-