public final class Attestation extends GeneratedMessageV3 implements AttestationOrBuilder
Occurrence that represents a single "attestation". The authenticity of an
attestation can be verified using the attached signature. If the verifier
trusts the public key of the signer, then verifying the signature is
sufficient to establish trust. In this circumstance, the authority to which
this attestation is attached is primarily useful for look-up (how to find
this attestation if you already know the authority and artifact to be
verified) and intent (which authority was this attestation intended to sign
for).
Protobuf type grafeas.v1beta1.attestation.Attestation
Static Fields
GENERIC_SIGNED_ATTESTATION_FIELD_NUMBER
public static final int GENERIC_SIGNED_ATTESTATION_FIELD_NUMBER
Field Value
PGP_SIGNED_ATTESTATION_FIELD_NUMBER
public static final int PGP_SIGNED_ATTESTATION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Attestation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Attestation.Builder newBuilder()
Returns
newBuilder(Attestation prototype)
public static Attestation.Builder newBuilder(Attestation prototype)
Parameter
Returns
public static Attestation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Attestation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Attestation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Attestation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Attestation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Attestation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Attestation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Attestation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Attestation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Attestation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Attestation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Attestation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Attestation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Attestation getDefaultInstanceForType()
Returns
getGenericSignedAttestation()
public GenericSignedAttestation getGenericSignedAttestation()
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Returns
getGenericSignedAttestationOrBuilder()
public GenericSignedAttestationOrBuilder getGenericSignedAttestationOrBuilder()
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Returns
getParserForType()
public Parser<Attestation> getParserForType()
Returns
Overrides
getPgpSignedAttestation()
public PgpSignedAttestation getPgpSignedAttestation()
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Returns
getPgpSignedAttestationOrBuilder()
public PgpSignedAttestationOrBuilder getPgpSignedAttestationOrBuilder()
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSignatureCase()
public Attestation.SignatureCase getSignatureCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasGenericSignedAttestation()
public boolean hasGenericSignedAttestation()
.grafeas.v1beta1.attestation.GenericSignedAttestation generic_signed_attestation = 2;
Returns
Type | Description |
boolean | Whether the genericSignedAttestation field is set.
|
hasPgpSignedAttestation()
public boolean hasPgpSignedAttestation()
A PGP signed attestation.
.grafeas.v1beta1.attestation.PgpSignedAttestation pgp_signed_attestation = 1;
Returns
Type | Description |
boolean | Whether the pgpSignedAttestation field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Attestation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Attestation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Attestation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions