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: 1763 $
- 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()
Gets the country.String
getMnemonic()
Gets the mnemonic.String
getName()
Consists of the concatenation of country code (length 2), mnemonic (length < 9) and sequence number (length 5).String
getSeqNumber()
Gets the sequence number.int
hashCode()
Gets a hash code of this object.String
toString()
Gets 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()
Gets a textual representation of this principal.
-
getCountry
public net.sf.scuba.data.Country getCountry()
Gets the country.- Returns:
- the country
-
getMnemonic
public String getMnemonic()
Gets the mnemonic.- Returns:
- the mnemonic
-
getSeqNumber
public String getSeqNumber()
Gets the sequence number.- Returns:
- the seqNumber
-
equals
public boolean equals(Object otherObj)
Tests for equality with respect to another object.
-
-