|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Key
Interface representing an object which can sign content and/or verify signatures
| Method Summary | |
|---|---|
boolean |
canSign()
|
boolean |
canVerify()
|
Set<Algorithm> |
getAlgorithms()
|
String |
getId()
|
byte[] |
sign(Algorithm algorithm,
byte[] contentBytes)
Signs the challengeHash using the specified signature Algorithm |
boolean |
verify(Algorithm algorithm,
byte[] contentBytes,
byte[] signatureBytes)
Verifies the signatureBytes against the challengeHash using an underlying public key |
| Method Detail |
|---|
String getId()
Key's self-identification. This may end up not being unique within a keychain.Set<Algorithm> getAlgorithms()
Set of Signature Algorithms supported by this key.boolean canVerify()
Key can be used for verification
boolean verify(Algorithm algorithm,
byte[] contentBytes,
byte[] signatureBytes)
signatureBytes against the challengeHash using an underlying public key
algorithm - the selected Signature AlgorithmcontentBytes - the result of RequestContent.getContent(java.util.List, java.nio.charset.Charset)signatureBytes - the result of Authorization.getSignatureBytes()
boolean canSign()
Key can be used for signing
byte[] sign(Algorithm algorithm,
byte[] contentBytes)
challengeHash using the specified signature Algorithm
algorithm - the selected Signature AlgorithmcontentBytes - the result of RequestContent.getContent(java.util.List, java.nio.charset.Charset)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||