Package com.google.crypto.tink.subtle
Enum PemKeyType
- java.lang.Object
-
- java.lang.Enum<PemKeyType>
-
- com.google.crypto.tink.subtle.PemKeyType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PemKeyType>
@Deprecated public enum PemKeyType extends java.lang.Enum<PemKeyType>
Deprecated.Use com.google.crypto.tink.PemKeyType instead.PEM key types that Tink supports
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ECDSA_P256_SHA256Deprecated.ECDSA_P384_SHA384Deprecated.ECDSA_P521_SHA512Deprecated.RSA_PSS_2048_SHA256Deprecated.RSA_PSS_3072_SHA256Deprecated.RSA_PSS_4096_SHA256Deprecated.RSA_PSS_4096_SHA512Deprecated.RSA_SIGN_PKCS1_2048_SHA256Deprecated.RSA_SIGN_PKCS1_3072_SHA256Deprecated.RSA_SIGN_PKCS1_4096_SHA256Deprecated.RSA_SIGN_PKCS1_4096_SHA512Deprecated.
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringalgorithmDeprecated.Enums.HashTypehashDeprecated.intkeySizeInBitsDeprecated.java.lang.StringkeyTypeDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.security.KeyreadKey(java.io.BufferedReader reader)Deprecated.Reads a single key fromreader.static PemKeyTypevalueOf(java.lang.String name)Deprecated.Returns the enum constant of this type with the specified name.static PemKeyType[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RSA_PSS_2048_SHA256
public static final PemKeyType RSA_PSS_2048_SHA256
Deprecated.
-
RSA_PSS_3072_SHA256
public static final PemKeyType RSA_PSS_3072_SHA256
Deprecated.
-
RSA_PSS_4096_SHA256
public static final PemKeyType RSA_PSS_4096_SHA256
Deprecated.
-
RSA_PSS_4096_SHA512
public static final PemKeyType RSA_PSS_4096_SHA512
Deprecated.
-
RSA_SIGN_PKCS1_2048_SHA256
public static final PemKeyType RSA_SIGN_PKCS1_2048_SHA256
Deprecated.
-
RSA_SIGN_PKCS1_3072_SHA256
public static final PemKeyType RSA_SIGN_PKCS1_3072_SHA256
Deprecated.
-
RSA_SIGN_PKCS1_4096_SHA256
public static final PemKeyType RSA_SIGN_PKCS1_4096_SHA256
Deprecated.
-
RSA_SIGN_PKCS1_4096_SHA512
public static final PemKeyType RSA_SIGN_PKCS1_4096_SHA512
Deprecated.
-
ECDSA_P256_SHA256
public static final PemKeyType ECDSA_P256_SHA256
Deprecated.
-
ECDSA_P384_SHA384
public static final PemKeyType ECDSA_P384_SHA384
Deprecated.
-
ECDSA_P521_SHA512
public static final PemKeyType ECDSA_P521_SHA512
Deprecated.
-
-
Field Detail
-
keyType
public final java.lang.String keyType
Deprecated.
-
algorithm
public final java.lang.String algorithm
Deprecated.
-
keySizeInBits
public final int keySizeInBits
Deprecated.
-
hash
public final Enums.HashType hash
Deprecated.
-
-
Method Detail
-
values
public static PemKeyType[] values()
Deprecated.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 (PemKeyType c : PemKeyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PemKeyType valueOf(java.lang.String name)
Deprecated.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
readKey
@Nullable public java.security.Key readKey(java.io.BufferedReader reader) throws java.io.IOExceptionDeprecated.Reads a single key fromreader.- Returns:
- a
Keyor null if the reader doesn't contain a valid PEM. - Throws:
java.io.IOException
-
-