public class CVCPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable
Constructor and Description |
---|
CVCPrincipal(net.sf.scuba.data.Country country,
java.lang.String mnemonic,
java.lang.String seqNumber)
Constructs a principal.
|
CVCPrincipal(java.lang.String name)
Constructs a principal.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObj) |
net.sf.scuba.data.Country |
getCountry()
Gets the country.
|
java.lang.String |
getMnemonic()
Gets the mnemonic.
|
java.lang.String |
getName()
Consists of the concatenation of
country code (length 2), mnemonic (length < 9) and
sequence number (length 5).
|
java.lang.String |
getSeqNumber()
Gets the sequence number.
|
int |
hashCode() |
java.lang.String |
toString() |
public CVCPrincipal(java.lang.String name)
name
- a name with format Country (2F) | Mnemonic (9V) | SeqNum (5F).public CVCPrincipal(net.sf.scuba.data.Country country, java.lang.String mnemonic, java.lang.String seqNumber)
country
- the countrymnemonic
- the mnemonicseqNumber
- the sequence numberpublic java.lang.String getName()
getName
in interface java.security.Principal
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public net.sf.scuba.data.Country getCountry()
public java.lang.String getMnemonic()
public java.lang.String getSeqNumber()
public boolean equals(java.lang.Object otherObj)
equals
in interface java.security.Principal
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object