| 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() |
com.google.crypto.tink.proto.KeyData |
getProtoKey() |
boolean |
hasSecret()
Returns true if the key contains secret key material, and false otherwise.
|
public com.google.crypto.tink.proto.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.