Enum SignedRequestVersion
- java.lang.Object
- 
- java.lang.Enum<SignedRequestVersion>
- 
- com.oracle.bmc.http.signing.internal.SignedRequestVersion
 
 
- 
- All Implemented Interfaces:
- Version,- Serializable,- Comparable<SignedRequestVersion>
 
 public enum SignedRequestVersion extends Enum<SignedRequestVersion> implements Version List of supported signed request versions with associated version rules.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.oracle.bmc.http.signing.internal.VersionVersion.Error
 
- 
 - 
Enum Constant SummaryEnum Constants Enum Constant Description ONE
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SignedRequestVersiongetLatestVersion()Get the latest signed request version.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)static SignedRequestVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static SignedRequestVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
ONEpublic static final SignedRequestVersion ONE 
 
- 
 - 
Method Detail- 
valuespublic static SignedRequestVersion[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SignedRequestVersion c : SignedRequestVersion.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SignedRequestVersion valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
getSupportedAlgorithmspublic Set<Algorithm> getSupportedAlgorithms() Description copied from interface:VersionGet a set of supported algorithms.- Specified by:
- getSupportedAlgorithmsin interface- Version
 
 - 
getSupportedKeyIdTypespublic Set<KeyIdType> getSupportedKeyIdTypes() Description copied from interface:VersionGet a set of supported keyId types.- Specified by:
- getSupportedKeyIdTypesin interface- Version
 
 - 
getVersionNumberpublic int getVersionNumber() Description copied from interface:VersionGet the version number.- Specified by:
- getVersionNumberin interface- Version
 
 - 
getVersionNamepublic String getVersionName() Description copied from interface:VersionGet the name of this version - usually the version number as a String.- Specified by:
- getVersionNamein interface- Version
 
 - 
getMinimumKeySizeInBitspublic int getMinimumKeySizeInBits() Description copied from interface:VersionGet the minimum public key size in bits.- Specified by:
- getMinimumKeySizeInBitsin interface- Version
 
 - 
validateKeyIdpublic Optional<Version.Error> validateKeyId(@Nonnull String keyId) - Specified by:
- validateKeyIdin interface- Version
 
 - 
validateAlgorithmpublic Optional<Version.Error> validateAlgorithm(@Nonnull Algorithm algorithm) - Specified by:
- validateAlgorithmin interface- Version
 
 - 
validateKeySizepublic Optional<Version.Error> validateKeySize(@Nonnull RSAPublicKey publicKey) - Specified by:
- validateKeySizein interface- Version
 
 - 
getLatestVersionpublic static SignedRequestVersion getLatestVersion() Get the latest signed request version.
 
- 
 
-