Class Certificate (0.3.0)

public final class Certificate extends GeneratedMessage implements CertificateOrBuilder

Certificate information

Protobuf type google.backstory.Certificate

Static Fields

ISSUER_FIELD_NUMBER

public static final int ISSUER_FIELD_NUMBER
Field Value
Type Description
int

MD5_FIELD_NUMBER

public static final int MD5_FIELD_NUMBER
Field Value
Type Description
int

NOT_AFTER_FIELD_NUMBER

public static final int NOT_AFTER_FIELD_NUMBER
Field Value
Type Description
int

NOT_BEFORE_FIELD_NUMBER

public static final int NOT_BEFORE_FIELD_NUMBER
Field Value
Type Description
int

SERIAL_FIELD_NUMBER

public static final int SERIAL_FIELD_NUMBER
Field Value
Type Description
int

SHA1_FIELD_NUMBER

public static final int SHA1_FIELD_NUMBER
Field Value
Type Description
int

SHA256_FIELD_NUMBER

public static final int SHA256_FIELD_NUMBER
Field Value
Type Description
int

SUBJECT_FIELD_NUMBER

public static final int SUBJECT_FIELD_NUMBER
Field Value
Type Description
int

VERSION_FIELD_NUMBER

public static final int VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Certificate getDefaultInstance()
Returns
Type Description
Certificate

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Certificate.Builder newBuilder()
Returns
Type Description
Certificate.Builder

newBuilder(Certificate prototype)

public static Certificate.Builder newBuilder(Certificate prototype)
Parameter
Name Description
prototype Certificate
Returns
Type Description
Certificate.Builder

parseDelimitedFrom(InputStream input)

public static Certificate parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Certificate
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Certificate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Certificate
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Certificate parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Certificate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Certificate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Certificate parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Certificate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Certificate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Certificate parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Certificate
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Certificate
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Certificate parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Certificate
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Certificate
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Certificate parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Certificate
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Certificate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Certificate
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Certificate> parser()
Returns
Type Description
Parser<Certificate>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Certificate getDefaultInstanceForType()
Returns
Type Description
Certificate

getIssuer()

public String getIssuer()

Issuer of the certificate.

string issuer = 4;

Returns
Type Description
String

The issuer.

getIssuerBytes()

public ByteString getIssuerBytes()

Issuer of the certificate.

string issuer = 4;

Returns
Type Description
ByteString

The bytes for issuer.

getMd5()

public String getMd5()

The MD5 hash of the certificate, as a hex-encoded string.

string md5 = 5;

Returns
Type Description
String

The md5.

getMd5Bytes()

public ByteString getMd5Bytes()

The MD5 hash of the certificate, as a hex-encoded string.

string md5 = 5;

Returns
Type Description
ByteString

The bytes for md5.

getNotAfter()

public Timestamp getNotAfter()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
Timestamp

The notAfter.

getNotAfterOrBuilder()

public TimestampOrBuilder getNotAfterOrBuilder()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
TimestampOrBuilder

getNotBefore()

public Timestamp getNotBefore()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
Timestamp

The notBefore.

getNotBeforeOrBuilder()

public TimestampOrBuilder getNotBeforeOrBuilder()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<Certificate> getParserForType()
Returns
Type Description
Parser<Certificate>
Overrides

getSerial()

public String getSerial()

Certificate serial number.

string serial = 2;

Returns
Type Description
String

The serial.

getSerialBytes()

public ByteString getSerialBytes()

Certificate serial number.

string serial = 2;

Returns
Type Description
ByteString

The bytes for serial.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSha1()

public String getSha1()

The SHA1 hash of the certificate, as a hex-encoded string.

string sha1 = 6;

Returns
Type Description
String

The sha1.

getSha1Bytes()

public ByteString getSha1Bytes()

The SHA1 hash of the certificate, as a hex-encoded string.

string sha1 = 6;

Returns
Type Description
ByteString

The bytes for sha1.

getSha256()

public String getSha256()

The SHA256 hash of the certificate, as a hex-encoded string.

string sha256 = 7;

Returns
Type Description
String

The sha256.

getSha256Bytes()

public ByteString getSha256Bytes()

The SHA256 hash of the certificate, as a hex-encoded string.

string sha256 = 7;

Returns
Type Description
ByteString

The bytes for sha256.

getSubject()

public String getSubject()

Subject of the certificate.

string subject = 3;

Returns
Type Description
String

The subject.

getSubjectBytes()

public ByteString getSubjectBytes()

Subject of the certificate.

string subject = 3;

Returns
Type Description
ByteString

The bytes for subject.

getVersion()

public String getVersion()

Certificate version.

string version = 1;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Certificate version.

string version = 1;

Returns
Type Description
ByteString

The bytes for version.

hasNotAfter()

public boolean hasNotAfter()

Indicates when the certificate is no longer valid.

.google.protobuf.Timestamp not_after = 9;

Returns
Type Description
boolean

Whether the notAfter field is set.

hasNotBefore()

public boolean hasNotBefore()

Indicates when the certificate is first valid.

.google.protobuf.Timestamp not_before = 8;

Returns
Type Description
boolean

Whether the notBefore field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Certificate.Builder newBuilderForType()
Returns
Type Description
Certificate.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Certificate.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Certificate.Builder
Overrides

toBuilder()

public Certificate.Builder toBuilder()
Returns
Type Description
Certificate.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException