public static class Signature.KeyStoreInfo
extends java.lang.Object
KeyStoreInfo
represents as keystore information.
Only used for default signature signing.
Currently, default signature signing in Foxit PDF SDK only supports pkcs12 type keystore, which contains .pfx and .p12 file extension.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TYPE_PKCS12
KeyStore type: pkcs12.
|
Constructor and Description |
---|
KeyStoreInfo(java.lang.String type,
java.lang.String path,
byte[] password)
Construct a
KeyStoreInfo object with specified type,
path and password. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getPassword()
Get the password of keystore.
|
java.lang.String |
getPath()
Get the path of the keystore file.
|
java.lang.String |
getType()
Get the type of the keystore.
|
void |
setPassword(byte[] password)
Set the password of the keystore.
|
void |
setPath(java.lang.String path)
Set the path of the keystore file.
|
void |
setType(java.lang.String type)
Set the type of the keystore.
|
public static final java.lang.String TYPE_PKCS12
public KeyStoreInfo(java.lang.String type, java.lang.String path, byte[] password)
KeyStoreInfo
object with specified type,
path and password.
Currently, only support pkcs12 type.type
- The type of the keystore. Please refer to constant definitions TYPE_XXX
and it should be one of these constants. Currently, only support TYPE_PKCS12
.path
- The path of the keystore file. TYPE_PKCS12
, the file extension should be .pfx or .p12.password
- The specific password of keystore.public java.lang.String getType()
TYPE_XXX
and it should be one of these constants.public void setType(java.lang.String type)
type
- The specifiedtype of the keystore. Please refer to constant definitions TYPE_XXX
and it should be one of these constants. Currently, only support TYPE_PKCS12
.public java.lang.String getPath()
public void setPath(java.lang.String path)
The file extension depends on the type of keystore.
For TYPE_PKCS12
, the file extension should be .pfx or .p12.
path
- The specified path of the keystore file.public byte[] getPassword()
public void setPassword(byte[] password)
password
- The specified password of the keystore.