public interface Version
The rules for a signed request version, i.e., supported algorithms, supported keyId formats.
Modifier and Type | Interface and Description |
---|---|
static class |
Version.Error |
Modifier and Type | Method and Description |
---|---|
int |
getMinimumKeySizeInBits()
Get the minimum public key size in bits.
|
Set<Algorithm> |
getSupportedAlgorithms()
Get a set of supported algorithms.
|
Set<KeyIdType> |
getSupportedKeyIdTypes()
Get a set of supported keyId types.
|
String |
getVersionName()
Get the name of this version - usually the version number as a String.
|
int |
getVersionNumber()
Get the version number.
|
Optional<Version.Error> |
validateAlgorithm(Algorithm algorithm) |
Optional<Version.Error> |
validateKeyId(String keyId) |
Optional<Version.Error> |
validateKeySize(RSAPublicKey publicKey) |
int getVersionNumber()
Get the version number.
String getVersionName()
Get the name of this version - usually the version number as a String.
int getMinimumKeySizeInBits()
Get the minimum public key size in bits.
Optional<Version.Error> validateKeyId(@Nonnull String keyId)
Optional<Version.Error> validateAlgorithm(@Nonnull Algorithm algorithm)
Optional<Version.Error> validateKeySize(@Nonnull RSAPublicKey publicKey)
Copyright © 2016–2024. All rights reserved.