|
JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PSEPeerSecurityEngine
Provides algorithm support for PSE.
Method Summary | |
---|---|
PSEUtils.IssuerInfo |
generateCertificate(PSECredential credential)
Generate a new service certificate. |
String |
getSignatureAlgorithm()
Returns the default signature algorithm for this security engine. |
byte[] |
sign(String algorithm,
PSECredential credential,
InputStream bis)
Cryptographically sign an input stream using the specified credential with the specified algorithm. |
boolean |
verify(String algorithm,
PSECredential credential,
byte[] signature,
InputStream bis)
Cryptographically verify a signature against an input stream using the specified credential with the specified algorithm. |
Method Detail |
---|
byte[] sign(String algorithm, PSECredential credential, InputStream bis) throws InvalidKeyException, SignatureException, IOException
algorithm
- The signature algorithm to use.credential
- The credential which is signing the stream.bis
- The input stream to be signed.
InvalidKeyException
SignatureException
IOException
boolean verify(String algorithm, PSECredential credential, byte[] signature, InputStream bis) throws InvalidKeyException, SignatureException, IOException
algorithm
- The signature algorithm to use.signature
- The signature to be verified.credential
- The credential which is signing the stream.bis
- The input stream to be signed.
true
If the signature is valid otherwise false
.
InvalidKeyException
SignatureException
IOException
PSEUtils.IssuerInfo generateCertificate(PSECredential credential) throws SecurityException
credential
- The credential which will be the issuer of the service certificate.
SecurityException
String getSignatureAlgorithm()
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |