public final class SignatureType extends Object
An application must specify the signature type when creating an EDOC signature.
Available signature propeties can be accessed using the getProperties() method.
| Modifier and Type | Field and Description |
|---|---|
static int |
SIGNATURE_LEVEL_BASIC
Basic signature level.
|
static int |
SIGNATURE_LEVEL_TIMESTAMPED
Timestamped signature level.
|
static int |
SIGNATURE_LEVEL_VERIFIED
Verified signature level.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this SignatureType.
|
EDOCProperties |
getProperties()
Returns signature properties specified by this signature type,
ot null if no properties are defined.
|
int |
getSignatureLevel()
Returns the current signature level,
or -1 if the current level is not set.
|
boolean |
isBasicSigAllowed()
Returns true if this signature type allows basic signature.
|
boolean |
isReadonly()
Returns true if this SignatureType instance is readonly.
|
boolean |
isSimpleSignatureType()
Returns true if this is a simple signature type.
|
boolean |
isTimestampedSigAllowed()
Returns true if this signature type allows timestamped signature.
|
boolean |
isVerifiedSigAllowed()
Returns true if this signature type allows verified signature.
|
void |
prepareForSignature() |
void |
setSignatureLevel(int signatureLevel)
Sets the current signature level.
|
public static final int SIGNATURE_LEVEL_BASIC
public static final int SIGNATURE_LEVEL_TIMESTAMPED
public static final int SIGNATURE_LEVEL_VERIFIED
public String getName()
public boolean isSimpleSignatureType()
public boolean isBasicSigAllowed()
public boolean isTimestampedSigAllowed()
public boolean isVerifiedSigAllowed()
public EDOCProperties getProperties()
public int getSignatureLevel()
public void setSignatureLevel(int signatureLevel)
throws EDOCException
signatureLevel - the signature level.EDOCException - if signature level is not allowed.public boolean isReadonly()
EDOCSignature.public void prepareForSignature()
throws EDOCException
EDOCException