public final class Keyset extends com.google.protobuf.GeneratedMessageLite<Keyset,Keyset.Builder> implements KeysetOrBuilder
A Tink user works usually not with single keys, but with keysets, to enable key rotation. The keys in a keyset can belong to different implementations/key types, but must all implement the same primitive. Any given keyset (and any given key) can be used for one primitive only.Protobuf type
google.crypto.tink.Keyset| Modifier and Type | Class and Description |
|---|---|
static class |
Keyset.Builder
A Tink user works usually not with single keys, but with keysets,
to enable key rotation.
|
static class |
Keyset.Key
Protobuf type
google.crypto.tink.Keyset.Key |
static interface |
Keyset.KeyOrBuilder |
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_FIELD_NUMBER |
static int |
PRIMARY_KEY_ID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1) |
static Keyset |
getDefaultInstance() |
Keyset.Key |
getKey(int index)
Actual keys in the Keyset.
|
int |
getKeyCount()
Actual keys in the Keyset.
|
List<Keyset.Key> |
getKeyList()
Actual keys in the Keyset.
|
Keyset.KeyOrBuilder |
getKeyOrBuilder(int index)
Actual keys in the Keyset.
|
List<? extends Keyset.KeyOrBuilder> |
getKeyOrBuilderList()
Actual keys in the Keyset.
|
int |
getPrimaryKeyId()
Identifies key used to generate new crypto data (encrypt, sign).
|
static Keyset.Builder |
newBuilder() |
static Keyset.Builder |
newBuilder(Keyset prototype) |
static Keyset |
parseDelimitedFrom(InputStream input) |
static Keyset |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Keyset |
parseFrom(byte[] data) |
static Keyset |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Keyset |
parseFrom(ByteBuffer data) |
static Keyset |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Keyset |
parseFrom(com.google.protobuf.ByteString data) |
static Keyset |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Keyset |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Keyset |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Keyset |
parseFrom(InputStream input) |
static Keyset |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Keyset> |
parser() |
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int PRIMARY_KEY_ID_FIELD_NUMBER
public static final int KEY_FIELD_NUMBER
public int getPrimaryKeyId()
Identifies key used to generate new crypto data (encrypt, sign). Required.
uint32 primary_key_id = 1;getPrimaryKeyId in interface KeysetOrBuilderpublic List<Keyset.Key> getKeyList()
Actual keys in the Keyset. Required.
repeated .google.crypto.tink.Keyset.Key key = 2;getKeyList in interface KeysetOrBuilderpublic List<? extends Keyset.KeyOrBuilder> getKeyOrBuilderList()
Actual keys in the Keyset. Required.
repeated .google.crypto.tink.Keyset.Key key = 2;public int getKeyCount()
Actual keys in the Keyset. Required.
repeated .google.crypto.tink.Keyset.Key key = 2;getKeyCount in interface KeysetOrBuilderpublic Keyset.Key getKey(int index)
Actual keys in the Keyset. Required.
repeated .google.crypto.tink.Keyset.Key key = 2;getKey in interface KeysetOrBuilderpublic Keyset.KeyOrBuilder getKeyOrBuilder(int index)
Actual keys in the Keyset. Required.
repeated .google.crypto.tink.Keyset.Key key = 2;public static Keyset parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Keyset parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Keyset parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Keyset parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Keyset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Keyset parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Keyset parseFrom(InputStream input) throws IOException
IOExceptionpublic static Keyset parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Keyset parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Keyset parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Keyset parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Keyset parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Keyset.Builder newBuilder()
public static Keyset.Builder newBuilder(Keyset prototype)
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Keyset,Keyset.Builder>public static Keyset getDefaultInstance()
public static com.google.protobuf.Parser<Keyset> parser()