public static final class KeyInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder> implements KeyInfoOrBuilder
KeyInfo represents a (secret) key that is either already stored in the bccsp/keystore or key material to be imported to the bccsp key-store. In later versions it may contain also a keystore identifierProtobuf type
msp.KeyInfo
Modifier and Type | Method and Description |
---|---|
KeyInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KeyInfo |
build() |
KeyInfo |
buildPartial() |
KeyInfo.Builder |
clear() |
KeyInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
KeyInfo.Builder |
clearKeyIdentifier()
Identifier of the key inside the default keystore; this for
the case of Software BCCSP as well as the HSM BCCSP would be
the SKI of the key
|
KeyInfo.Builder |
clearKeyMaterial()
KeyMaterial (optional) for the key to be imported; this is
properly encoded key bytes, prefixed by the type of the key
|
KeyInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
KeyInfo.Builder |
clone() |
KeyInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKeyIdentifier()
Identifier of the key inside the default keystore; this for
the case of Software BCCSP as well as the HSM BCCSP would be
the SKI of the key
|
com.google.protobuf.ByteString |
getKeyIdentifierBytes()
Identifier of the key inside the default keystore; this for
the case of Software BCCSP as well as the HSM BCCSP would be
the SKI of the key
|
com.google.protobuf.ByteString |
getKeyMaterial()
KeyMaterial (optional) for the key to be imported; this is
properly encoded key bytes, prefixed by the type of the key
|
boolean |
isInitialized() |
KeyInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
KeyInfo.Builder |
mergeFrom(KeyInfo other) |
KeyInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
KeyInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
KeyInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
KeyInfo.Builder |
setKeyIdentifier(String value)
Identifier of the key inside the default keystore; this for
the case of Software BCCSP as well as the HSM BCCSP would be
the SKI of the key
|
KeyInfo.Builder |
setKeyIdentifierBytes(com.google.protobuf.ByteString value)
Identifier of the key inside the default keystore; this for
the case of Software BCCSP as well as the HSM BCCSP would be
the SKI of the key
|
KeyInfo.Builder |
setKeyMaterial(com.google.protobuf.ByteString value)
KeyMaterial (optional) for the key to be imported; this is
properly encoded key bytes, prefixed by the type of the key
|
KeyInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
KeyInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newBuilderForField
findInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public KeyInfo.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public KeyInfo build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public KeyInfo buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public KeyInfo.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<KeyInfo.Builder>
public KeyInfo.Builder mergeFrom(KeyInfo other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public KeyInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<KeyInfo.Builder>
IOException
public String getKeyIdentifier()
Identifier of the key inside the default keystore; this for the case of Software BCCSP as well as the HSM BCCSP would be the SKI of the key
string key_identifier = 1 [json_name = "keyIdentifier"];
getKeyIdentifier
in interface KeyInfoOrBuilder
public com.google.protobuf.ByteString getKeyIdentifierBytes()
Identifier of the key inside the default keystore; this for the case of Software BCCSP as well as the HSM BCCSP would be the SKI of the key
string key_identifier = 1 [json_name = "keyIdentifier"];
getKeyIdentifierBytes
in interface KeyInfoOrBuilder
public KeyInfo.Builder setKeyIdentifier(String value)
Identifier of the key inside the default keystore; this for the case of Software BCCSP as well as the HSM BCCSP would be the SKI of the key
string key_identifier = 1 [json_name = "keyIdentifier"];
value
- The keyIdentifier to set.public KeyInfo.Builder clearKeyIdentifier()
Identifier of the key inside the default keystore; this for the case of Software BCCSP as well as the HSM BCCSP would be the SKI of the key
string key_identifier = 1 [json_name = "keyIdentifier"];
public KeyInfo.Builder setKeyIdentifierBytes(com.google.protobuf.ByteString value)
Identifier of the key inside the default keystore; this for the case of Software BCCSP as well as the HSM BCCSP would be the SKI of the key
string key_identifier = 1 [json_name = "keyIdentifier"];
value
- The bytes for keyIdentifier to set.public com.google.protobuf.ByteString getKeyMaterial()
KeyMaterial (optional) for the key to be imported; this is properly encoded key bytes, prefixed by the type of the key
bytes key_material = 2 [json_name = "keyMaterial"];
getKeyMaterial
in interface KeyInfoOrBuilder
public KeyInfo.Builder setKeyMaterial(com.google.protobuf.ByteString value)
KeyMaterial (optional) for the key to be imported; this is properly encoded key bytes, prefixed by the type of the key
bytes key_material = 2 [json_name = "keyMaterial"];
value
- The keyMaterial to set.public KeyInfo.Builder clearKeyMaterial()
KeyMaterial (optional) for the key to be imported; this is properly encoded key bytes, prefixed by the type of the key
bytes key_material = 2 [json_name = "keyMaterial"];
public final KeyInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
public final KeyInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<KeyInfo.Builder>
Copyright © 2022. All rights reserved.