Package org.jmrtd.cert
Class CVCAuthorizationTemplate
- java.lang.Object
-
- org.jmrtd.cert.CVCAuthorizationTemplate
-
public class CVCAuthorizationTemplate extends java.lang.Object
Card verifiable certificate authorization template.- Version:
- $Revision: 1853 $
- 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 authorization role.
-
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(java.lang.Object otherObj)
Checks equality.CVCAuthorizationTemplate.Permission
getAccessRight()
Returns the access rights.CVCAuthorizationTemplate.Role
getRole()
Returns the role.int
hashCode()
Returns a hash code of this object.java.lang.String
toString()
Returns 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()
Returns the role.- Returns:
- the role
-
getAccessRight
public CVCAuthorizationTemplate.Permission getAccessRight()
Returns the access rights.- Returns:
- the access rights
-
toString
public java.lang.String toString()
Returns a textual representation of this authorization template.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a textual representation of this authorization template
-
equals
public boolean equals(java.lang.Object otherObj)
Checks equality.- Overrides:
equals
in classjava.lang.Object
- Parameters:
otherObj
- the other object- Returns:
- whether the other object is equal to this object
-
hashCode
public int hashCode()
Returns a hash code of this object.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash code
-
-