Class ProhibitedAttributeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
br.ufsc.labsec.signature.exceptions.PbadException
br.ufsc.labsec.signature.exceptions.SignatureAttributeException
br.ufsc.labsec.signature.conformanceVerifier.cades.exceptions.ProhibitedAttributeException
- All Implemented Interfaces:
Serializable
public class ProhibitedAttributeException extends SignatureAttributeException
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static String
CONTAINS_PROHIBITED_ATTRIBUTE_TIMESTAMP
static String
CONTAINS_PROHIBITED_SIGNED_ATTRIBUTE
static String
CONTAINS_PROHIBITED_UNSIGNED_ATTRIBUTE
Fields inherited from class br.ufsc.labsec.signature.exceptions.SignatureAttributeException
ATTRIBUTE_BUILDING_FAILURE, ATTRIBUTE_IS_NOT_IMPLEMENTED_YET, ATTRIBUTE_NOT_FOUND, CERT_PATH_NULL, COULD_NOT_OBTAIN_HASH, DUPLICATED_ATTRIBUTE, EMPTY_CERT_LIST, EMPTY_CERTPATH_ATTR, HASH_FAILURE, IMPORTING_NODE, INDEX_OUT_OF_BOUNDS, INVALID_ISSUER_SERIAL, INVALID_PA_DIGEST, INVALID_PA_OID, INVALID_PA_URI, MISSING_ATTR_AUTHORITIES_CERT_VALUES, MISSING_ATTRIBUTE_REVOCATION_VALUES, MISSING_CERTIFICATE, MISSING_CERTIFICATE_VALUES, MISSING_REVOCATION_VALUES, MISSING_SIGNATURE_VALUE, MISSING_SIGNED_INFO, NEED_CERTPATH_AND_DIGEST, PROBLEMS_TO_DECODE, STRUCTURE_VIOLATION, UNKNOWN_ALGORITHM, UNKNOWN_IMPORTING_NODE, UNRECOMENDED_ATTRIBUTE, UNSIGNED_PROPERTIES_NOT_FOUND, WRONG_ALGORITHM, WRONG_SIGNERATTR_VERSION
Fields inherited from class br.ufsc.labsec.signature.exceptions.PbadException
INVALID_ALGORITHM, INVALID_DIGEST_ALGORITHM, INVALID_SIGNATURE, NO_SUCH_ALGORITHM
-
Constructor Summary
Constructors Constructor Description ProhibitedAttributeException(String message)
ConstrutorProhibitedAttributeException(String message, String attributeId)
Construtor usado para informar qual o atributo obrigatório que está faltando. -
Method Summary
Modifier and Type Method Description String
getAttributeId()
Retorna o identificador do atributoprotected void
setAttributeId(String mandatedAttributeId)
Atribue o identificador do atributoMethods inherited from class br.ufsc.labsec.signature.exceptions.SignatureAttributeException
setCritical
Methods inherited from class br.ufsc.labsec.signature.exceptions.PbadException
isCritical
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CONTAINS_PROHIBITED_SIGNED_ATTRIBUTE
- See Also:
- Constant Field Values
-
CONTAINS_PROHIBITED_UNSIGNED_ATTRIBUTE
- See Also:
- Constant Field Values
-
CONTAINS_PROHIBITED_ATTRIBUTE_TIMESTAMP
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ProhibitedAttributeException
Construtor- Parameters:
message
- A mensagem de erro
-
ProhibitedAttributeException
Construtor usado para informar qual o atributo obrigatório que está faltando.- Parameters:
message
- A mensagem de erroattributeId
- O identificador do atributo
-
-
Method Details
-
getAttributeId
Retorna o identificador do atributo- Returns:
- O identificador do atributo
-
setAttributeId
Atribue o identificador do atributo- Parameters:
mandatedAttributeId
- O identificador do atributo
-