|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.verificationcode.EPPSignedCode
com.verisign.epp.codec.verificationcode.EPPEncodedSignedCodeValue
public class EPPEncodedSignedCodeValue
Class for the encoded signed code, which contains the code and the
XMLSignature
itself. This class extends
EPPSignedCode
.
Field Summary | |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the code local name for encoded signedCode element |
static java.lang.String |
ELM_NAME
Constant for the code tag for signedCode element |
Fields inherited from class com.verisign.epp.codec.verificationcode.EPPSignedCode |
---|
ELM_SIGNED_CODE, ELM_SIGNED_CODE_LOCALNAME |
Constructor Summary | |
---|---|
EPPEncodedSignedCodeValue()
Create an EPPEncodedSignedCodeValue instance. |
|
EPPEncodedSignedCodeValue(byte[] aEncodedSignedCodeArray)
Creates an EPPEncodedSignedCodeValue that is initialized by
decoding the input byte[] . |
|
EPPEncodedSignedCodeValue(EPPSignedCode aSignedCode)
Construct Encoded SignedCode object from SignedCode object. |
|
EPPEncodedSignedCodeValue(EPPVerificationCode aCode)
Create an EPPEncodedSignedCodeValue with the code of the signed
code. |
|
EPPEncodedSignedCodeValue(java.io.InputStream aSCODE)
Creates an EPPEncodedSignedCodeValue by decoding the a Signed
Code Data (SMD) that is in a PEM-like input stream that includes the
encoded signed code with a leading line "-----BEGIN ENCODED
SCODE-----" and a trailing "-----END ENCODED SCODE-----". |
|
EPPEncodedSignedCodeValue(java.lang.String aCode,
java.lang.String aType)
Create an EPPEncodedSignedCodeValue with the code and type of the signed
code. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPEncodedSignedCodeValue . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPSignedCode component |
byte[] |
encode()
Encode the signed code to a byte[] . |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document |
java.lang.String |
encodeValue()
Encodes the Base64 signed code value without the wrapping XML elements. |
Methods inherited from class com.verisign.epp.codec.verificationcode.EPPSignedCode |
---|
decode, equals, getAttrIdValue, getCode, getCodeType, getCodeValue, getLocalName, sign, sign, toString, validate, validate, validate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
Constructor Detail |
---|
public EPPEncodedSignedCodeValue()
EPPEncodedSignedCodeValue
instance.
public EPPEncodedSignedCodeValue(EPPSignedCode aSignedCode) throws EPPEncodeException, EPPDecodeException
aSignedCode
- SignedCode object
EPPEncodeException
- Error encoding the SignedCode byte[]
.
EPPDecodeException
- Error decoding the encoded SignedCode byte[]
.public EPPEncodedSignedCodeValue(EPPVerificationCode aCode) throws EPPEncodeException
EPPEncodedSignedCodeValue
with the code of the signed
code.
aCode
- Verification code
EPPEncodeException
- Thrown if any errors prevent encoding.public EPPEncodedSignedCodeValue(java.lang.String aCode, java.lang.String aType) throws EPPEncodeException
EPPEncodedSignedCodeValue
with the code and type of the signed
code.
aCode
- Verification codeaType
- Verification code type.
EPPEncodeException
- Thrown if any errors prevent encoding.public EPPEncodedSignedCodeValue(byte[] aEncodedSignedCodeArray) throws EPPDecodeException
EPPEncodedSignedCodeValue
that is initialized by
decoding the input byte[]
.
aEncodedSignedCodeArray
- byte[]
to decode the attribute values
EPPDecodeException
- Error decoding the input byte[]
.public EPPEncodedSignedCodeValue(java.io.InputStream aSCODE) throws EPPDecodeException
EPPEncodedSignedCodeValue
by decoding the a Signed
Code Data (SMD) that is in a PEM-like input stream that includes the
encoded signed code with a leading line "-----BEGIN ENCODED
SCODE-----" and a trailing "-----END ENCODED SCODE-----".
aSMD
- InputStream
containing a Signed Code (SCODE)
EPPDecodeException
- Error decoding the Signed Code (SCODE)Method Detail |
---|
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPSignedCode
component
decode
in interface EPPCodecComponent
decode
in class EPPSignedCode
aElement
- Root element of the EPPSignedCode
EPPDecodeException
- Error decoding the EPPSignedCode
public byte[] encode() throws EPPEncodeException
byte[]
.
encode
in class EPPSignedCode
EPPEncodeException
- Error encoding the signed codepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
encode
in class EPPSignedCode
aDocument
- a DOM Document to attach data to.
EPPEncodeException
- Thrown if any errors prevent encoding.public java.lang.String encodeValue() throws EPPEncodeException
EPPEncodeException
- Error encoding the Base64 signed code valuepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPEncodedSignedCodeValue
.
clone
in interface EPPCodecComponent
clone
in class EPPSignedCode
EPPEncodedSignedCodeValue
java.lang.CloneNotSupportedException
- standard Object.clone exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |