public final class HpkePrivateKey extends com.google.protobuf.GeneratedMessageLite<HpkePrivateKey,HpkePrivateKey.Builder> implements HpkePrivateKeyOrBuilder
google.crypto.tink.HpkePrivateKey| Modifier and Type | Class and Description |
|---|---|
static class |
HpkePrivateKey.Builder
Protobuf type
google.crypto.tink.HpkePrivateKey |
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 |
PRIVATE_KEY_FIELD_NUMBER |
static int |
PUBLIC_KEY_FIELD_NUMBER |
static int |
VERSION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1) |
static HpkePrivateKey |
getDefaultInstance() |
com.google.protobuf.ByteString |
getPrivateKey()
KEM-encoding of private key (i.e., SerializePrivateKey() ) as described in
https://www.rfc-editor.org/rfc/rfc9180.html#name-cryptographic-dependencies.
|
HpkePublicKey |
getPublicKey()
.google.crypto.tink.HpkePublicKey public_key = 2; |
int |
getVersion()
uint32 version = 1; |
boolean |
hasPublicKey()
.google.crypto.tink.HpkePublicKey public_key = 2; |
static HpkePrivateKey.Builder |
newBuilder() |
static HpkePrivateKey.Builder |
newBuilder(HpkePrivateKey prototype) |
static HpkePrivateKey |
parseDelimitedFrom(InputStream input) |
static HpkePrivateKey |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HpkePrivateKey |
parseFrom(byte[] data) |
static HpkePrivateKey |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HpkePrivateKey |
parseFrom(ByteBuffer data) |
static HpkePrivateKey |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HpkePrivateKey |
parseFrom(com.google.protobuf.ByteString data) |
static HpkePrivateKey |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HpkePrivateKey |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HpkePrivateKey |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HpkePrivateKey |
parseFrom(InputStream input) |
static HpkePrivateKey |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HpkePrivateKey> |
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 VERSION_FIELD_NUMBER
public static final int PUBLIC_KEY_FIELD_NUMBER
public static final int PRIVATE_KEY_FIELD_NUMBER
public int getVersion()
uint32 version = 1;getVersion in interface HpkePrivateKeyOrBuilderpublic boolean hasPublicKey()
.google.crypto.tink.HpkePublicKey public_key = 2;hasPublicKey in interface HpkePrivateKeyOrBuilderpublic HpkePublicKey getPublicKey()
.google.crypto.tink.HpkePublicKey public_key = 2;getPublicKey in interface HpkePrivateKeyOrBuilderpublic com.google.protobuf.ByteString getPrivateKey()
KEM-encoding of private key (i.e., SerializePrivateKey() ) as described in https://www.rfc-editor.org/rfc/rfc9180.html#name-cryptographic-dependencies.
bytes private_key = 3;getPrivateKey in interface HpkePrivateKeyOrBuilderpublic static HpkePrivateKey parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HpkePrivateKey parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HpkePrivateKey parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HpkePrivateKey parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HpkePrivateKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HpkePrivateKey parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HpkePrivateKey parseFrom(InputStream input) throws IOException
IOExceptionpublic static HpkePrivateKey parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HpkePrivateKey parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HpkePrivateKey parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HpkePrivateKey parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HpkePrivateKey parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HpkePrivateKey.Builder newBuilder()
public static HpkePrivateKey.Builder newBuilder(HpkePrivateKey prototype)
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<HpkePrivateKey,HpkePrivateKey.Builder>public static HpkePrivateKey getDefaultInstance()
public static com.google.protobuf.Parser<HpkePrivateKey> parser()