Package org.jmrtd.cert
Class CVCAuthorizationTemplate
- java.lang.Object
-
- org.jmrtd.cert.CVCAuthorizationTemplate
-
public class CVCAuthorizationTemplate extends Object
Card verifiable certificate authorization template.- Version:
- $Revision: 1765 $
- Author:
- The JMRTD team ([email protected])
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CVCAuthorizationTemplate.Permission
The authorization permission.static class
CVCAuthorizationTemplate.Role
The issuing authority.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CVCAuthorizationTemplate(org.ejbca.cvc.CVCAuthorizationTemplate template)
Constructs an authorization template based on an EJBCA authorization template.CVCAuthorizationTemplate(CVCAuthorizationTemplate.Role role, CVCAuthorizationTemplate.Permission accessRight)
Constructs an authorization template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object otherObj)
Checks equality.CVCAuthorizationTemplate.Permission
getAccessRight()
Gets the access rights.CVCAuthorizationTemplate.Role
getRole()
Gets the role.int
hashCode()
Gets a hash code of this object.String
toString()
Gets a textual representation of this authorization template.
-
-
-
Constructor Detail
-
CVCAuthorizationTemplate
protected CVCAuthorizationTemplate(org.ejbca.cvc.CVCAuthorizationTemplate template)
Constructs an authorization template based on an EJBCA authorization template.- Parameters:
template
- the authZ template to wrap
-
CVCAuthorizationTemplate
public CVCAuthorizationTemplate(CVCAuthorizationTemplate.Role role, CVCAuthorizationTemplate.Permission accessRight)
Constructs an authorization template.- Parameters:
role
- the roleaccessRight
- the access rights
-
-
Method Detail
-
getRole
public CVCAuthorizationTemplate.Role getRole()
Gets the role.- Returns:
- the role
-
getAccessRight
public CVCAuthorizationTemplate.Permission getAccessRight()
Gets the access rights.- Returns:
- the access rights
-
toString
public String toString()
Gets a textual representation of this authorization template.
-
equals
public boolean equals(Object otherObj)
Checks equality.
-
-