Class InitializationRequestElement
java.lang.Object
org.kopi.ebics.xml.DefaultEbicsRootElement
org.kopi.ebics.xml.InitializationRequestElement
- All Implemented Interfaces:
Serializable, EbicsElement, EbicsRootElement
- Direct Known Subclasses:
DownloadInitializationRequestElement, SPRRequestElement, UploadInitializationRequestElement
The
InitializationRequestElement is the root element for
ebics uploads and downloads requests. The response of this element is
then used either to upload or download files from the ebics server.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SecretKeySpecprotected final byte[]protected EbicsOrderTypeFields inherited from class DefaultEbicsRootElement
document, session -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInitializationRequestElement(EbicsSession session, EbicsOrderType type, String name) Construct a newInitializationRequestElementroot element. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild()Builds theEbicsElementXML fragmentabstract voidBuilds the initialization request according to the element type.protected byte[]decodeHex(byte[] hex) Decodes an hexadecimal input.protected byte[]Generates the upload transaction keybyte[]Returns the digest value of the authenticated XML portions.getName()Returns the name of thisEbicsElementgetType()Returns the element type.byte[]Converts theEbicsElementto a byte arrayMethods inherited from class DefaultEbicsRootElement
addNamespaceDecl, generateName, generateName, insertSchemaLocation, prettyPrint, print, save, setSaveSuggestedPrefixes, toPrettyString, toString, validate
-
Field Details
-
type
-
nonce
protected final byte[] nonce -
keySpec
-
-
Constructor Details
-
InitializationRequestElement
Construct a newInitializationRequestElementroot element.- Parameters:
session- the current ebics session.type- the initialization type (UPLOAD, DOWNLOAD).name- the element name.
-
-
Method Details
-
build
Description copied from interface:EbicsElementBuilds theEbicsElementXML fragment- Throws:
EbicsException
-
getName
Description copied from interface:EbicsElementReturns the name of thisEbicsElement- Returns:
- the name of the element
-
toByteArray
public byte[] toByteArray()Description copied from interface:EbicsRootElementConverts theEbicsElementto a byte array- Specified by:
toByteArrayin interfaceEbicsRootElement- Overrides:
toByteArrayin classDefaultEbicsRootElement- Returns:
- the equivalent byte array of this
EbicsElement
-
getDigest
Returns the digest value of the authenticated XML portions.- Returns:
- the digest value.
- Throws:
EbicsException- Failed to retrieve the digest value.
-
getType
-
decodeHex
Decodes an hexadecimal input.- Parameters:
hex- the hexadecimal input- Returns:
- the decoded hexadecimal value
- Throws:
EbicsException
-
generateTransactionKey
Generates the upload transaction key- Returns:
- the transaction key
- Throws:
EbicsException
-
buildInitialization
Builds the initialization request according to the element type.- Throws:
EbicsException- build fails
-