Class EPPEncodedSignedCodeValue
java.lang.Object
com.verisign.epp.codec.verificationcode.EPPSignedCode
com.verisign.epp.codec.verificationcode.EPPEncodedSignedCodeValue
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for the encoded signed code, which contains the code and the
XMLSignature itself. This class extends
EPPSignedCode.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the code local name for encoded signedCode elementstatic final StringConstant for the code tag for signedCode elementFields inherited from class com.verisign.epp.codec.verificationcode.EPPSignedCode
ELM_SIGNED_CODE, ELM_SIGNED_CODE_LOCALNAME -
Constructor Summary
ConstructorsConstructorDescriptionCreate anEPPEncodedSignedCodeValueinstance.EPPEncodedSignedCodeValue(byte[] aEncodedSignedCodeArray) Creates anEPPEncodedSignedCodeValuethat is initialized by decoding the inputbyte[].EPPEncodedSignedCodeValue(EPPSignedCode aSignedCode) Construct Encoded SignedCode object from SignedCode object.Create anEPPEncodedSignedCodeValuewith the code of the signed code.EPPEncodedSignedCodeValue(InputStream aScode) Creates anEPPEncodedSignedCodeValueby 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(String aCode, String aType) Create anEPPEncodedSignedCodeValuewith the code and type of the signed code. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPEncodedSignedCodeValue.voidDecode theEPPSignedCodecomponentvoiddecodeValue(byte[] aBase64SignedCode) Decode the Base64 encoded signed code value with no wrapping XML.voiddecodeValue(String aBase64SignedCode) Decode the Base64 encoded signed code value with no wrapping XML.byte[]encode()Encode the encoded signed code to abyte[].Sets all this instance's data in the given XML documentEncodes the Base64 signed code value without the wrapping XML elementsencodeValue(boolean aIsChunked) Encodes the Base64 signed code value without the wrapping XML elements, and with the option for chunking the Base64 into 76 character blocks.byte[]Encodes the Base64 signed code value without the wrapping XML elementsbyte[]encodeValueByteArray(boolean aIsChunked) Encodes the Base64 signed code value without the wrapping XML elements, and with the option for chunking the Base64 into 76 character blocks.Methods inherited from class com.verisign.epp.codec.verificationcode.EPPSignedCode
decode, equals, getAttrIdValue, getCode, getCodeType, getCodeValue, getLocalName, getNamespace, getTrustAnchor, hasTrustAnchor, sign, sign, toString, validate, validate, validate
-
Field Details
-
ELM_LOCALNAME
Constant for the code local name for encoded signedCode element- See Also:
-
ELM_NAME
Constant for the code tag for signedCode element- See Also:
-
-
Constructor Details
-
EPPEncodedSignedCodeValue
public EPPEncodedSignedCodeValue()Create anEPPEncodedSignedCodeValueinstance. -
EPPEncodedSignedCodeValue
public EPPEncodedSignedCodeValue(EPPSignedCode aSignedCode) throws EPPEncodeException, EPPDecodeException Construct Encoded SignedCode object from SignedCode object.- Parameters:
aSignedCode- SignedCode object- Throws:
EPPEncodeException- Error encoding the SignedCodebyte[].EPPDecodeException- Error decoding the encoded SignedCodebyte[].
-
EPPEncodedSignedCodeValue
Create anEPPEncodedSignedCodeValuewith the code of the signed code.- Parameters:
aCode- Verification code- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
EPPEncodedSignedCodeValue
Create anEPPEncodedSignedCodeValuewith the code and type of the signed code.- Parameters:
aCode- Verification codeaType- Verification code type.- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
EPPEncodedSignedCodeValue
Creates anEPPEncodedSignedCodeValuethat is initialized by decoding the inputbyte[].- Parameters:
aEncodedSignedCodeArray-byte[]to decode the attribute values- Throws:
EPPDecodeException- Error decoding the inputbyte[].
-
EPPEncodedSignedCodeValue
Creates anEPPEncodedSignedCodeValueby 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-----".- Parameters:
aScode-InputStreamcontaining a Signed Code (SCODE)- Throws:
EPPDecodeException- Error decoding the Signed Code (SCODE)
-
-
Method Details
-
decode
Decode theEPPSignedCodecomponent- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPSignedCode- Parameters:
aElement- Root element of theEPPSignedCode- Throws:
EPPDecodeException- Error decoding theEPPSignedCode
-
decodeValue
Decode the Base64 encoded signed code value with no wrapping XML.- Parameters:
aBase64SignedCode- Base64 encodedEPPSignedCode, which does not include the wrapper <verificationCode:code> XML element.- Throws:
EPPDecodeException- Error decoding the Base64 encodedEPPSignedCode
-
decodeValue
Decode the Base64 encoded signed code value with no wrapping XML.- Parameters:
aBase64SignedCode- Base64 encodedEPPSignedCode, which does not include the wrapper <verificationCode:code> XML element.- Throws:
EPPDecodeException- Error decoding the Base64 encodedEPPSignedCode
-
encode
Encode the encoded signed code to abyte[]. This returns the XML with the wrapping <verificationCode:code> element with the Base64 encoded signed code value.- Overrides:
encodein classEPPSignedCode- Returns:
- Encoded signed code XML
- Throws:
EPPEncodeException- Error encoding the signed code
-
encode
Sets all this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPSignedCode- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
encodeValueByteArray
Encodes the Base64 signed code value without the wrapping XML elements, and with the option for chunking the Base64 into 76 character blocks.- Parameters:
aIsChunked- Chunk the Base64 output into 76 character blocks?- Returns:
- Base64 signed code value as a
String - Throws:
EPPEncodeException- Error encoding the Base64 signed code value
-
encodeValueByteArray
Encodes the Base64 signed code value without the wrapping XML elements- Returns:
- Base64 signed code value as a
Stringthat is chunked into 76 character blocks. - Throws:
EPPEncodeException- Error encoding the Base64 signed code value
-
encodeValue
Encodes the Base64 signed code value without the wrapping XML elements, and with the option for chunking the Base64 into 76 character blocks.- Parameters:
aIsChunked- Chunk the Base64 output into 76 character blocks?- Returns:
- Base64 signed code value as a
String - Throws:
EPPEncodeException- Error encoding the Base64 signed code value
-
encodeValue
Encodes the Base64 signed code value without the wrapping XML elements- Returns:
- Base64 signed code value as a
Stringthat is chunked into 76 character blocks. - Throws:
EPPEncodeException- Error encoding the Base64 signed code value
-
clone
CloneEPPEncodedSignedCodeValue.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPSignedCode- Returns:
- clone of
EPPEncodedSignedCodeValue - Throws:
CloneNotSupportedException- standard Object.clone exception
-