public final class CryptoKey extends GeneratedMessageV3 implements CryptoKeyOrBuilder
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by Cloud Key Management Service
(Cloud KMS).
When using Cloud KMS to wrap or unwrap a DEK, be sure to set an appropriate
IAM policy on the KEK to ensure an attacker cannot
unwrap the DEK.
Protobuf type google.privacy.dlp.v2.CryptoKey
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
KMS_WRAPPED_FIELD_NUMBER
public static final int KMS_WRAPPED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRANSIENT_FIELD_NUMBER
public static final int TRANSIENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
UNWRAPPED_FIELD_NUMBER
public static final int UNWRAPPED_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static CryptoKey getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static CryptoKey.Builder newBuilder()
newBuilder(CryptoKey prototype)
public static CryptoKey.Builder newBuilder(CryptoKey prototype)
public static CryptoKey parseDelimitedFrom(InputStream input)
public static CryptoKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static CryptoKey parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CryptoKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static CryptoKey parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CryptoKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CryptoKey parseFrom(CodedInputStream input)
public static CryptoKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static CryptoKey parseFrom(InputStream input)
public static CryptoKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static CryptoKey parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CryptoKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<CryptoKey> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public CryptoKey getDefaultInstanceForType()
getKmsWrapped()
public KmsWrappedCryptoKey getKmsWrapped()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
getKmsWrappedOrBuilder()
public KmsWrappedCryptoKeyOrBuilder getKmsWrappedOrBuilder()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
getParserForType()
public Parser<CryptoKey> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getSourceCase()
public CryptoKey.SourceCase getSourceCase()
getTransient()
public TransientCryptoKey getTransient()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
getTransientOrBuilder()
public TransientCryptoKeyOrBuilder getTransientOrBuilder()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
getUnwrapped()
public UnwrappedCryptoKey getUnwrapped()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
getUnwrappedOrBuilder()
public UnwrappedCryptoKeyOrBuilder getUnwrappedOrBuilder()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
hasKmsWrapped()
public boolean hasKmsWrapped()
Key wrapped using Cloud KMS
.google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3;
Returns |
---|
Type | Description |
boolean | Whether the kmsWrapped field is set.
|
hasTransient()
public boolean hasTransient()
Transient crypto key
.google.privacy.dlp.v2.TransientCryptoKey transient = 1;
Returns |
---|
Type | Description |
boolean | Whether the transient field is set.
|
hasUnwrapped()
public boolean hasUnwrapped()
Unwrapped crypto key
.google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2;
Returns |
---|
Type | Description |
boolean | Whether the unwrapped field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public CryptoKey.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CryptoKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public CryptoKey.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides