Interface Version
-
- All Known Implementing Classes:
SignedRequestVersion
public interface VersionThe rules for a signed request version, i.e., supported algorithms, supported keyId formats.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classVersion.Error
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetMinimumKeySizeInBits()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.StringgetVersionName()Get the name of this version - usually the version number as a String.intgetVersionNumber()Get the version number.Optional<Version.Error>validateAlgorithm(Algorithm algorithm)Optional<Version.Error>validateKeyId(String keyId)Optional<Version.Error>validateKeySize(RSAPublicKey publicKey)
-
-
-
Method Detail
-
getVersionNumber
int getVersionNumber()
Get the version number.
-
getVersionName
String getVersionName()
Get the name of this version - usually the version number as a String.
-
getMinimumKeySizeInBits
int getMinimumKeySizeInBits()
Get the minimum public key size in bits.
-
validateKeyId
Optional<Version.Error> validateKeyId(@Nonnull String keyId)
-
validateAlgorithm
Optional<Version.Error> validateAlgorithm(@Nonnull Algorithm algorithm)
-
validateKeySize
Optional<Version.Error> validateKeySize(@Nonnull RSAPublicKey publicKey)
-
-