Class SigningUtil
java.lang.Object
software.xdev.bzst.dip.client.util.SigningUtil
Helps with signing XML-Documents
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic KeyStore.PrivateKeyEntrygetPrivateKeyEntry(InputStream keyStoreInputStream, String keyStorePassword, String type) Reads the givenInputStreamwith the corresponding password and returns it asKeyStore.PrivateKeyEntry.static StringsignXMLDocument(String unsignedXmlString, BzstDipConfiguration configuration) Signs an unsigned xml string with the corresponding keystore from theBzstDipConfiguration.certificateKeystoreInputStream
-
Field Details
-
KEYSTORE_TYPE
- See Also:
-
-
Method Details
-
signXMLDocument
Signs an unsigned xml string with the corresponding keystore from theBzstDipConfiguration.certificateKeystoreInputStream- Returns:
- the signed xml document as string
-
getPrivateKeyEntry
public static KeyStore.PrivateKeyEntry getPrivateKeyEntry(InputStream keyStoreInputStream, String keyStorePassword, String type) Reads the givenInputStreamwith the corresponding password and returns it asKeyStore.PrivateKeyEntry.
-