| Constructor and Description |
|---|
ProtoKey(KeyData keyData,
KeyTemplate.OutputPrefixType opt)
Constructs a ProtoKey with
hasSecret() returning true if the input KeyData has
key material of type UNKNOWN_KEYMATERIAL, SYMMETRIC, or ASYMMETRIC_PRIVATE. |
| Modifier and Type | Method and Description |
|---|---|
KeyTemplate |
getKeyTemplate()
A
TinkKey should know the KeyTemplate from which it was generated,
which in turn specifies the cryptographic algorithm in which the TinkKey should
be used. |
KeyTemplate.OutputPrefixType |
getOutputPrefixType() |
KeyData |
getProtoKey() |
boolean |
hasSecret()
Returns true if the key contains secret key material, and false otherwise.
|
public ProtoKey(KeyData keyData, KeyTemplate.OutputPrefixType opt)
hasSecret() returning true if the input KeyData has
key material of type UNKNOWN_KEYMATERIAL, SYMMETRIC, or ASYMMETRIC_PRIVATE.public KeyData getProtoKey()
public KeyTemplate.OutputPrefixType getOutputPrefixType()
public boolean hasSecret()
TinkKeypublic KeyTemplate getKeyTemplate()
TinkKeyTinkKey should know the KeyTemplate from which it was generated,
which in turn specifies the cryptographic algorithm in which the TinkKey should
be used.
Throws UnsupportedOperationException to help ease rollout until it is possible to easily
find the KeyTemplate associated to a key described in protogetKeyTemplate in interface TinkKeyKeyTemplate used to generate the key.UnsupportedOperationException - There is currently no direct way of getting a KeyTemplate from KeyData.