Interface SubjectOrBuilder (2.28.0)

public interface SubjectOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsDigest(String key)

public abstract boolean containsDigest(String key)

"<ALGORITHM>": "<HEX_VALUE>" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDigest()

public abstract Map<String,String> getDigest()

Use #getDigestMap() instead.

Returns
TypeDescription
Map<String,String>

getDigestCount()

public abstract int getDigestCount()

"<ALGORITHM>": "<HEX_VALUE>" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet

map<string, string> digest = 2;

Returns
TypeDescription
int

getDigestMap()

public abstract Map<String,String> getDigestMap()

"<ALGORITHM>": "<HEX_VALUE>" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet

map<string, string> digest = 2;

Returns
TypeDescription
Map<String,String>

getDigestOrDefault(String key, String defaultValue)

public abstract String getDigestOrDefault(String key, String defaultValue)

"<ALGORITHM>": "<HEX_VALUE>" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet

map<string, string> digest = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDigestOrThrow(String key)

public abstract String getDigestOrThrow(String key)

"<ALGORITHM>": "<HEX_VALUE>" Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet

map<string, string> digest = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getName()

public abstract String getName()

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.