public final class RsaSsaPssSignKeyManager extends PrivateKeyTypeManager<RsaSsaPssPrivateKey,RsaSsaPssPublicKey>
RsaSsaPssPrivateKey keys and produces new instances of
RsaSsaPssSignJce.KeyTypeManager.KeyFactory<KeyFormatProtoT extends com.google.protobuf.MessageLite,KeyProtoT extends com.google.protobuf.MessageLite>| Modifier and Type | Method and Description |
|---|---|
String |
getKeyType()
Returns the type URL that identifies the key type of keys managed by this KeyManager.
|
RsaSsaPssPublicKey |
getPublicKey(RsaSsaPssPrivateKey privKeyProto)
Creates a public key from the given private key.
|
int |
getVersion()
Returns the version number of this KeyManager.
|
KeyTypeManager.KeyFactory<RsaSsaPssKeyFormat,RsaSsaPssPrivateKey> |
keyFactory()
Returns the
KeyTypeManager.KeyFactory for this key type. |
KeyData.KeyMaterialType |
keyMaterialType()
Returns the
KeyData.KeyMaterialType for this proto. |
RsaSsaPssPrivateKey |
parseKey(com.google.protobuf.ByteString byteString)
Parses a serialized key proto.
|
static KeyTemplate |
rawRsa3072PssSha256F4Template() |
static KeyTemplate |
rawRsa4096PssSha512F4Template() |
static void |
registerPair(boolean newKeyAllowed)
Registers the
RsaSsaPssSignKeyManager and the RsaSsaPssVerifyKeyManager with
the registry, so that the the RsaSsaPss-Keys can be used with Tink. |
static KeyTemplate |
rsa3072PssSha256F4Template() |
static KeyTemplate |
rsa4096PssSha512F4Template() |
void |
validateKey(RsaSsaPssPrivateKey keyProto)
Checks if the given
keyProto is a valid key. |
getPublicKeyClassfipsStatus, firstSupportedPrimitiveClass, getKeyClass, getPrimitive, supportedPrimitivespublic String getKeyType()
KeyTypeManagergetKeyType in class KeyTypeManager<RsaSsaPssPrivateKey>public int getVersion()
KeyTypeManagergetVersion in class KeyTypeManager<RsaSsaPssPrivateKey>public RsaSsaPssPublicKey getPublicKey(RsaSsaPssPrivateKey privKeyProto) throws GeneralSecurityException
PrivateKeyTypeManagergetPublicKey in class PrivateKeyTypeManager<RsaSsaPssPrivateKey,RsaSsaPssPublicKey>GeneralSecurityExceptionpublic KeyData.KeyMaterialType keyMaterialType()
KeyTypeManagerKeyData.KeyMaterialType for this proto.keyMaterialType in class KeyTypeManager<RsaSsaPssPrivateKey>public RsaSsaPssPrivateKey parseKey(com.google.protobuf.ByteString byteString) throws com.google.protobuf.InvalidProtocolBufferException
KeyTypeManagerImplement as return KeyProtoT.parseFrom(byteString);.
parseKey in class KeyTypeManager<RsaSsaPssPrivateKey>com.google.protobuf.InvalidProtocolBufferExceptionpublic void validateKey(RsaSsaPssPrivateKey keyProto) throws GeneralSecurityException
KeyTypeManagerkeyProto is a valid key.validateKey in class KeyTypeManager<RsaSsaPssPrivateKey>GeneralSecurityException - if the passed keyProto is not valid in any way.public KeyTypeManager.KeyFactory<RsaSsaPssKeyFormat,RsaSsaPssPrivateKey> keyFactory()
KeyTypeManagerKeyTypeManager.KeyFactory for this key type.
By default, this throws an UnsupportedOperationException. Hence, if an implementation does not support creating primitives, no implementation is required.
keyFactory in class KeyTypeManager<RsaSsaPssPrivateKey>public static void registerPair(boolean newKeyAllowed)
throws GeneralSecurityException
RsaSsaPssSignKeyManager and the RsaSsaPssVerifyKeyManager with
the registry, so that the the RsaSsaPss-Keys can be used with Tink.GeneralSecurityExceptionpublic static final KeyTemplate rsa3072PssSha256F4Template()
KeyTemplate that generates new instances of RSA-SSA-PSS key pairs with the
following parameters:
KeyTemplate.OutputPrefixType#TINK.
public static final KeyTemplate rawRsa3072PssSha256F4Template()
KeyTemplate that generates new instances of RSA-SSA-PSS key pairs with the
following parameters:
KeyTemplate.OutputPrefixType#RAW (no prefix).
Keys generated from this template create signatures compatible with OpenSSL and other libraries.
public static final KeyTemplate rsa4096PssSha512F4Template()
KeyTemplate that generates new instances of RSA-SSA-PSS key pairs with the
following parameters:
KeyTemplate.OutputPrefixType#TINK.
public static final KeyTemplate rawRsa4096PssSha512F4Template()
KeyTemplate that generates new instances of RSA-SSA-PSS key pairs with the
following parameters:
KeyTemplate.OutputPrefixType#RAW (no prefix).
Keys generated from this template create signatures compatible with OpenSSL and other libraries.