public final class JwtRsaSsaPssSignKeyManager extends PrivateKeyTypeManager<JwtRsaSsaPssPrivateKey,JwtRsaSsaPssPublicKey>
JwtRsaSsaPssPrivateKey keys and produces new instances of
JwtPublicKeySign.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.
|
JwtRsaSsaPssPublicKey |
getPublicKey(JwtRsaSsaPssPrivateKey privKeyProto)
Creates a public key from the given private key.
|
int |
getVersion()
Returns the version number of this KeyManager.
|
KeyTypeManager.KeyFactory<JwtRsaSsaPssKeyFormat,JwtRsaSsaPssPrivateKey> |
keyFactory()
Returns the
KeyTypeManager.KeyFactory for this key type. |
KeyData.KeyMaterialType |
keyMaterialType()
Returns the
KeyData.KeyMaterialType for this proto. |
JwtRsaSsaPssPrivateKey |
parseKey(com.google.protobuf.ByteString byteString)
Parses a serialized key proto.
|
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. |
void |
validateKey(JwtRsaSsaPssPrivateKey privKey)
Checks if the given
keyProto is a valid key. |
getPublicKeyClassfipsStatus, firstSupportedPrimitiveClass, getKeyClass, getPrimitive, supportedPrimitivespublic String getKeyType()
KeyTypeManagergetKeyType in class KeyTypeManager<JwtRsaSsaPssPrivateKey>public int getVersion()
KeyTypeManagergetVersion in class KeyTypeManager<JwtRsaSsaPssPrivateKey>public JwtRsaSsaPssPublicKey getPublicKey(JwtRsaSsaPssPrivateKey privKeyProto)
PrivateKeyTypeManagergetPublicKey in class PrivateKeyTypeManager<JwtRsaSsaPssPrivateKey,JwtRsaSsaPssPublicKey>public KeyData.KeyMaterialType keyMaterialType()
KeyTypeManagerKeyData.KeyMaterialType for this proto.keyMaterialType in class KeyTypeManager<JwtRsaSsaPssPrivateKey>public JwtRsaSsaPssPrivateKey parseKey(com.google.protobuf.ByteString byteString) throws com.google.protobuf.InvalidProtocolBufferException
KeyTypeManagerImplement as return KeyProtoT.parseFrom(byteString);.
parseKey in class KeyTypeManager<JwtRsaSsaPssPrivateKey>com.google.protobuf.InvalidProtocolBufferExceptionpublic void validateKey(JwtRsaSsaPssPrivateKey privKey) throws GeneralSecurityException
KeyTypeManagerkeyProto is a valid key.validateKey in class KeyTypeManager<JwtRsaSsaPssPrivateKey>GeneralSecurityException - if the passed keyProto is not valid in any way.public KeyTypeManager.KeyFactory<JwtRsaSsaPssKeyFormat,JwtRsaSsaPssPrivateKey> 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<JwtRsaSsaPssPrivateKey>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.GeneralSecurityException