public interface Key
| Modifier and Type | Method and Description |
|---|---|
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 |
String getId()
Key's self-identification. This may end up not being unique within a keychain.boolean canVerify()
Key can be used for verificationboolean verify(Algorithm algorithm, byte[] contentBytes, byte[] signatureBytes)
signatureBytes against the challengeHash using an underlying public keyalgorithm - the selected Signature AlgorithmcontentBytes - the result of RequestContent.getBytesToSign(java.util.List, java.nio.charset.Charset)signatureBytes - the result of Authorization.getSignatureBytes()boolean canSign()
Key can be used for signingbyte[] sign(Algorithm algorithm, byte[] contentBytes)
challengeHash using the specified signature Algorithmalgorithm - the selected Signature AlgorithmcontentBytes - the result of RequestContent.getBytesToSign(java.util.List, java.nio.charset.Charset)Copyright © 2013-2017. All Rights Reserved.