public class TrustAnchorVerificationData
extends java.lang.Object
alias = codevspid ":" vspid ":" profilename ":" codetypes ":" shortname ":" certnumber codevspid = 1*DIGIT ; Verification Code vsp-id value vspid = 1*DIGIT ; Surrogate VSP Identifier profilename= 1*(DIGIT / ALPHA) ; Name of profile codetypes = codetype *( “~“ codetype) ; List of supported signed code types codetype = 1*(DIGIT / ALPHA / “-“) ; <verificationCode:signedCode> “type” attribute shortname = 1*(DIGIT / ALPHA) ; VSP Short name certnumber = 1*DIGIT ; Unique certificate numberAn example alias for the EPPSDK could be "0:-1:china:domain~real-name:eppsdk:1"
Modifier and Type | Field and Description |
---|---|
static int |
UNDEFINED
Undefined integer value of the verification data.
|
Constructor and Description |
---|
TrustAnchorVerificationData()
Default constructor.
|
TrustAnchorVerificationData(java.lang.String aTrustAnchorAlias)
Constructor that takes a trust anchor alias from a trust store to be
decoded.
|
Modifier and Type | Method and Description |
---|---|
void |
addCodeType(java.lang.String aCodeType)
Adds a code type to the list of code types.
|
void |
decode(java.lang.String aTrustAnchorAlias)
Decodes a trust anchor alias from a trust store to set the trust anchor
verification data.
|
java.lang.String |
encode()
Encodes a trust anchor anchor for a trust store.
|
boolean |
equals(java.lang.Object aObject)
implements a deep
TrustAnchorVerificationData compare. |
int |
getCertNumber()
Gets the Verification Service Provider (VSP) trust anchor certificate
number.
|
java.util.List<java.lang.String> |
getCodeTypes()
Gets the list of code types, per the "type" attribute of
<verificationCode:code>, supported by the Verification Service
Provider (VSP).
|
int |
getCodeVspId()
Gets the Verification Code vsp-id value per
draft-gould-eppext-verificationcode.
|
java.lang.String |
getProfileName()
Gets the name of the locality profile associated with the Verification
Service Provider (VSP).
|
java.lang.String |
getShortName()
Gets the short name of the Verification Service Provider (VSP).
|
int |
getVspId()
Gets the internal (surrogate) Verification Service Provider (VSP)
identifier.
|
boolean |
hasCertNumber()
Has the Verification Service Provider (VSP) trust anchor certificate
number been set?
|
boolean |
hasCodeTypes()
Are there any code types?
|
boolean |
hasCodeVspId()
Has the Verification Code vsp-id value been set?
|
boolean |
hasProfileName()
Has the locality profile associated with the Verification Service
Provider (VSP) been set?
|
boolean |
hasShortName()
Has VSP short name been set?
|
boolean |
hasVspId()
Has the internal (surrogate) Verification Service Provider (VSP)
identifier been set?
|
void |
setCertNumber(int aCertNumber)
Sets the Verification Service Provider (VSP) trust anchor certificate
number.
|
void |
setCodeTypes(java.util.List<java.lang.String> aCodeTypes)
Sets the list of code types, per the "type" attribute of
<verificationCode:code>, supported by the Verification Service
Provider (VSP).
|
void |
setCodeVspId(int aCodeVspId)
Sets the Verification Code vsp-id value per
draft-gould-eppext-verificationcode.
|
void |
setProfileName(java.lang.String aProfileName)
Sets the name of the locality profile associated with the Verification
Service Provider (VSP).
|
void |
setShortName(java.lang.String aShortName)
Sets the short name of the Verification Service Provider (VSP).
|
void |
setVspId(int aVspId)
Sets the internal (surrogate) Verification Service Provider (VSP)
identifier.
|
public static int UNDEFINED
public TrustAnchorVerificationData()
public TrustAnchorVerificationData(java.lang.String aTrustAnchorAlias) throws EPPException
aTrustAnchorAlias
- Alias of the trust anchor from a trust store.EPPException
- Error decoding the trust anchor aliaspublic boolean hasCodeVspId()
true
of the Verification Code vsp-id value has been
set; false
otherwise.public int getCodeVspId()
UNDEFINED
otherwise.public void setCodeVspId(int aCodeVspId)
aCodeVspId
- Verification Code vsp-id value per
draft-gould-eppext-verificationcodepublic boolean hasVspId()
true
of the internal (surrogate) Verification
Service Provider (VSP) identifier has been set;
false
otherwise.public int getVspId()
UNDEFINED
otherwise.public void setVspId(int aVspId)
aVspId
- Internal (surrogate) Verification Service Provider (VSP)
identifier.public boolean hasProfileName()
true
of the locality profile associated with the
Verification Service Provider (VSP) has been set;
false
otherwise.public java.lang.String getProfileName()
null
otherwise.public void setProfileName(java.lang.String aProfileName)
aProfileName
- Locality profile associated with the Verification Service
Provider (VSP).public boolean hasCodeTypes()
true
if there are code types; false
otherwise.public void addCodeType(java.lang.String aCodeType)
aCodeType
- Code type to add to the list of code types.public java.util.List<java.lang.String> getCodeTypes()
public void setCodeTypes(java.util.List<java.lang.String> aCodeTypes)
aCodeTypes
- List of code types supported by the Verification Service
Provider (VSP).public boolean hasShortName()
true
of the VSP short name has been set;
false
otherwise.public java.lang.String getShortName()
null
otherwise.public void setShortName(java.lang.String aShortName)
aShortName
- Short name of the Verification Service Provider (VSP).public boolean hasCertNumber()
true
of the Verification Service Provider (VSP)
trust anchor certificate number has been set; false
otherwise.public int getCertNumber()
null
otherwise.public void setCertNumber(int aCertNumber)
aCertNumber
- Unique certificate number for the VSPpublic void decode(java.lang.String aTrustAnchorAlias) throws EPPException
aTrustAnchorAlias
- Alias of the trust anchor from a trust store.EPPException
- Error decoding the trust anchor aliaspublic java.lang.String encode() throws EPPException
EPPException
- Error encoding the trust anchor aliaspublic boolean equals(java.lang.Object aObject)
TrustAnchorVerificationData
compare.equals
in class java.lang.Object
aObject
- TrustAnchorVerificationData
instance to compare
withtrue
if equal false
otherwise