Package org.jmrtd.cert
Class CVCPrincipal
- java.lang.Object
-
- org.jmrtd.cert.CVCPrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
public class CVCPrincipal extends Object implements Principal, Serializable
Card verifiable certificate principal. This just wraps the EJBCA implementation.- Version:
- $Revision: 1808 $
- Author:
- The JMRTD team ([email protected])
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CVCPrincipal(String name)
Constructs a principal.CVCPrincipal(net.sf.scuba.data.Country country, String mnemonic, String seqNumber)
Constructs a principal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object otherObj)
Tests for equality with respect to another object.net.sf.scuba.data.Country
getCountry()
Returns the country.String
getMnemonic()
Returns the mnemonic.String
getName()
Consists of the concatenation of country code (length 2), mnemonic (length < 9) and sequence number (length 5).String
getSeqNumber()
Returns the sequence number.int
hashCode()
Returns a hash code of this object.String
toString()
Returns a textual representation of this principal.
-
-
-
Constructor Detail
-
CVCPrincipal
public CVCPrincipal(String name)
Constructs a principal.- Parameters:
name
- a name with format Country (2F) | Mnemonic (9V) | SeqNum (5F).
-
-
Method Detail
-
getName
public String getName()
Consists of the concatenation of country code (length 2), mnemonic (length < 9) and sequence number (length 5).
-
toString
public String toString()
Returns a textual representation of this principal.
-
getCountry
public net.sf.scuba.data.Country getCountry()
Returns the country.- Returns:
- the country
-
getMnemonic
public String getMnemonic()
Returns the mnemonic.- Returns:
- the mnemonic
-
getSeqNumber
public String getSeqNumber()
Returns the sequence number.- Returns:
- the seqNumber
-
equals
public boolean equals(Object otherObj)
Tests for equality with respect to another object.
-
-