|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Signer
This interface provides all the necessary methods for signing.
Method Summary | |
---|---|
java.lang.String |
getSigningAlgorithmID()
This method returns the key-dependent Signing Algorithm used by the Signer. |
java.security.cert.X509Certificate |
getVerificationCertificate()
This method lets the caller get the verification certificate so it can be provided in some form to the signature verifier, or can be used to extract the necessary data to form the correct signature information (signer's name, etc). |
byte[] |
sign(byte[] data)
This method lets the caller sign any data and returns the signature of it. |
Method Detail |
---|
byte[] sign(byte[] data) throws SecurityException
data
- is the binary data to be signed
SecurityException
- if signing fails for whatever reasonjava.security.cert.X509Certificate getVerificationCertificate() throws SecurityException
SecurityException
- if the certificate cannot be returned (for
example, a session is not open, or the certificate is not available)java.lang.String getSigningAlgorithmID() throws SecurityException
SecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |