Package eu.europa.esig.dss.validation
Class SignerRole
java.lang.Object
eu.europa.esig.dss.validation.SignerRole
This class represents the signer roles extracted from the signature.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the role categoryGets the certificate's 'notAfter' for a 'certified' role categoryGets the certificate's 'notBefore' for a 'certified' role categorygetRole()Gets the roleinthashCode()voidsetNotAfter(Date notAfter) Sets the certificate's 'notAfter' for a 'certified' role categoryvoidsetNotBefore(Date notBefore) Sets the certificate's 'notBefore' for a 'certified' role categorytoString()
-
Constructor Details
-
SignerRole
The default constructor- Parameters:
role-Stringcategory-EndorsementTypeof the SignedRole
-
-
Method Details
-
getRole
Gets the role- Returns:
String
-
getCategory
Gets the role category- Returns:
EndorsementType
-
getNotBefore
Gets the certificate's 'notBefore' for a 'certified' role category- Returns:
Date
-
setNotBefore
Sets the certificate's 'notBefore' for a 'certified' role category- Parameters:
notBefore-Date
-
getNotAfter
Gets the certificate's 'notAfter' for a 'certified' role category- Returns:
Date
-
setNotAfter
Sets the certificate's 'notAfter' for a 'certified' role category- Parameters:
notAfter-Date
-
toString
-
equals
-
hashCode
public int hashCode()
-