public final class Ed25519PrivateKey extends com.google.protobuf.GeneratedMessageLite<Ed25519PrivateKey,Ed25519PrivateKey.Builder> implements Ed25519PrivateKeyOrBuilder
key_type: type.googleapis.com/google.crypto.tink.Ed25519PrivateKeyProtobuf type
google.crypto.tink.Ed25519PrivateKey| Modifier and Type | Class and Description |
|---|---|
static class |
Ed25519PrivateKey.Builder
key_type: type.googleapis.com/google.crypto.tink.Ed25519PrivateKey
|
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_VALUE_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 Ed25519PrivateKey |
getDefaultInstance() |
com.google.protobuf.ByteString |
getKeyValue()
The private key is 32 bytes of cryptographically secure random data.
|
Ed25519PublicKey |
getPublicKey()
The corresponding public key.
|
int |
getVersion()
Required.
|
boolean |
hasPublicKey()
The corresponding public key.
|
static Ed25519PrivateKey.Builder |
newBuilder() |
static Ed25519PrivateKey.Builder |
newBuilder(Ed25519PrivateKey prototype) |
static Ed25519PrivateKey |
parseDelimitedFrom(InputStream input) |
static Ed25519PrivateKey |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Ed25519PrivateKey |
parseFrom(byte[] data) |
static Ed25519PrivateKey |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Ed25519PrivateKey |
parseFrom(ByteBuffer data) |
static Ed25519PrivateKey |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Ed25519PrivateKey |
parseFrom(com.google.protobuf.ByteString data) |
static Ed25519PrivateKey |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Ed25519PrivateKey |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Ed25519PrivateKey |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Ed25519PrivateKey |
parseFrom(InputStream input) |
static Ed25519PrivateKey |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Ed25519PrivateKey> |
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 KEY_VALUE_FIELD_NUMBER
public static final int PUBLIC_KEY_FIELD_NUMBER
public int getVersion()
Required.
uint32 version = 1;getVersion in interface Ed25519PrivateKeyOrBuilderpublic com.google.protobuf.ByteString getKeyValue()
The private key is 32 bytes of cryptographically secure random data. See https://tools.ietf.org/html/rfc8032#section-5.1.5. Required.
bytes key_value = 2;getKeyValue in interface Ed25519PrivateKeyOrBuilderpublic boolean hasPublicKey()
The corresponding public key.
.google.crypto.tink.Ed25519PublicKey public_key = 3;hasPublicKey in interface Ed25519PrivateKeyOrBuilderpublic Ed25519PublicKey getPublicKey()
The corresponding public key.
.google.crypto.tink.Ed25519PublicKey public_key = 3;getPublicKey in interface Ed25519PrivateKeyOrBuilderpublic static Ed25519PrivateKey parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Ed25519PrivateKey parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Ed25519PrivateKey parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Ed25519PrivateKey parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Ed25519PrivateKey parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Ed25519PrivateKey parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Ed25519PrivateKey parseFrom(InputStream input) throws IOException
IOExceptionpublic static Ed25519PrivateKey parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Ed25519PrivateKey parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Ed25519PrivateKey parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Ed25519PrivateKey parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Ed25519PrivateKey parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Ed25519PrivateKey.Builder newBuilder()
public static Ed25519PrivateKey.Builder newBuilder(Ed25519PrivateKey prototype)
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<Ed25519PrivateKey,Ed25519PrivateKey.Builder>public static Ed25519PrivateKey getDefaultInstance()
public static com.google.protobuf.Parser<Ed25519PrivateKey> parser()