public static final class Keyset.Key.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Keyset.Key,Keyset.Key.Builder> implements Keyset.KeyOrBuilder
google.crypto.tink.Keyset.Key| Modifier and Type | Method and Description |
|---|---|
Keyset.Key.Builder |
clearKeyData()
Contains the actual, instantiation specific key proto.
|
Keyset.Key.Builder |
clearKeyId()
Identifies a key within a keyset, is a part of metadata
of a ciphertext/signature.
|
Keyset.Key.Builder |
clearOutputPrefixType()
Determines the prefix of the ciphertexts/signatures produced by this key.
|
Keyset.Key.Builder |
clearStatus()
.google.crypto.tink.KeyStatusType status = 2; |
KeyData |
getKeyData()
Contains the actual, instantiation specific key proto.
|
int |
getKeyId()
Identifies a key within a keyset, is a part of metadata
of a ciphertext/signature.
|
OutputPrefixType |
getOutputPrefixType()
Determines the prefix of the ciphertexts/signatures produced by this key.
|
int |
getOutputPrefixTypeValue()
Determines the prefix of the ciphertexts/signatures produced by this key.
|
KeyStatusType |
getStatus()
.google.crypto.tink.KeyStatusType status = 2; |
int |
getStatusValue()
.google.crypto.tink.KeyStatusType status = 2; |
boolean |
hasKeyData()
Contains the actual, instantiation specific key proto.
|
Keyset.Key.Builder |
mergeKeyData(KeyData value)
Contains the actual, instantiation specific key proto.
|
Keyset.Key.Builder |
setKeyData(KeyData.Builder builderForValue)
Contains the actual, instantiation specific key proto.
|
Keyset.Key.Builder |
setKeyData(KeyData value)
Contains the actual, instantiation specific key proto.
|
Keyset.Key.Builder |
setKeyId(int value)
Identifies a key within a keyset, is a part of metadata
of a ciphertext/signature.
|
Keyset.Key.Builder |
setOutputPrefixType(OutputPrefixType value)
Determines the prefix of the ciphertexts/signatures produced by this key.
|
Keyset.Key.Builder |
setOutputPrefixTypeValue(int value)
Determines the prefix of the ciphertexts/signatures produced by this key.
|
Keyset.Key.Builder |
setStatus(KeyStatusType value)
.google.crypto.tink.KeyStatusType status = 2; |
Keyset.Key.Builder |
setStatusValue(int value)
.google.crypto.tink.KeyStatusType status = 2; |
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionpublic boolean hasKeyData()
Contains the actual, instantiation specific key proto. By convention, each key proto contains a version field.
.google.crypto.tink.KeyData key_data = 1;hasKeyData in interface Keyset.KeyOrBuilderpublic KeyData getKeyData()
Contains the actual, instantiation specific key proto. By convention, each key proto contains a version field.
.google.crypto.tink.KeyData key_data = 1;getKeyData in interface Keyset.KeyOrBuilderpublic Keyset.Key.Builder setKeyData(KeyData value)
Contains the actual, instantiation specific key proto. By convention, each key proto contains a version field.
.google.crypto.tink.KeyData key_data = 1;public Keyset.Key.Builder setKeyData(KeyData.Builder builderForValue)
Contains the actual, instantiation specific key proto. By convention, each key proto contains a version field.
.google.crypto.tink.KeyData key_data = 1;public Keyset.Key.Builder mergeKeyData(KeyData value)
Contains the actual, instantiation specific key proto. By convention, each key proto contains a version field.
.google.crypto.tink.KeyData key_data = 1;public Keyset.Key.Builder clearKeyData()
Contains the actual, instantiation specific key proto. By convention, each key proto contains a version field.
.google.crypto.tink.KeyData key_data = 1;public int getStatusValue()
.google.crypto.tink.KeyStatusType status = 2;getStatusValue in interface Keyset.KeyOrBuilderpublic Keyset.Key.Builder setStatusValue(int value)
.google.crypto.tink.KeyStatusType status = 2;value - The status to set.public KeyStatusType getStatus()
.google.crypto.tink.KeyStatusType status = 2;getStatus in interface Keyset.KeyOrBuilderpublic Keyset.Key.Builder setStatus(KeyStatusType value)
.google.crypto.tink.KeyStatusType status = 2;value - The enum numeric value on the wire for status to set.public Keyset.Key.Builder clearStatus()
.google.crypto.tink.KeyStatusType status = 2;public int getKeyId()
Identifies a key within a keyset, is a part of metadata of a ciphertext/signature.
uint32 key_id = 3;getKeyId in interface Keyset.KeyOrBuilderpublic Keyset.Key.Builder setKeyId(int value)
Identifies a key within a keyset, is a part of metadata of a ciphertext/signature.
uint32 key_id = 3;value - The keyId to set.public Keyset.Key.Builder clearKeyId()
Identifies a key within a keyset, is a part of metadata of a ciphertext/signature.
uint32 key_id = 3;public int getOutputPrefixTypeValue()
Determines the prefix of the ciphertexts/signatures produced by this key. This value is copied verbatim from the key template.
.google.crypto.tink.OutputPrefixType output_prefix_type = 4;getOutputPrefixTypeValue in interface Keyset.KeyOrBuilderpublic Keyset.Key.Builder setOutputPrefixTypeValue(int value)
Determines the prefix of the ciphertexts/signatures produced by this key. This value is copied verbatim from the key template.
.google.crypto.tink.OutputPrefixType output_prefix_type = 4;value - The outputPrefixType to set.public OutputPrefixType getOutputPrefixType()
Determines the prefix of the ciphertexts/signatures produced by this key. This value is copied verbatim from the key template.
.google.crypto.tink.OutputPrefixType output_prefix_type = 4;getOutputPrefixType in interface Keyset.KeyOrBuilderpublic Keyset.Key.Builder setOutputPrefixType(OutputPrefixType value)
Determines the prefix of the ciphertexts/signatures produced by this key. This value is copied verbatim from the key template.
.google.crypto.tink.OutputPrefixType output_prefix_type = 4;value - The enum numeric value on the wire for outputPrefixType to set.public Keyset.Key.Builder clearOutputPrefixType()
Determines the prefix of the ciphertexts/signatures produced by this key. This value is copied verbatim from the key template.
.google.crypto.tink.OutputPrefixType output_prefix_type = 4;