Package eu.europa.esig.dss.validation
Class SignerRole
java.lang.Object
eu.europa.esig.dss.validation.SignerRole
public class SignerRole extends Object
This class represents the signer roles extracted from the signature.
-
Constructor Summary
Constructors Constructor Description SignerRole(String role, EndorsementType category)The default constructor -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)EndorsementTypegetCategory()Gets the role categoryDategetNotAfter()Gets the certificate's 'notAfter' for a 'certified' role categoryDategetNotBefore()Gets the certificate's 'notBefore' for a 'certified' role categoryStringgetRole()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 categoryStringtoString()
-
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()
-