Interface SubjectOrBuilder (2.48.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
Name Description
key String
Returns
Type Description
boolean

getDigest() (deprecated)

public abstract Map<String,String> getDigest()

Use #getDigestMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getName()

public abstract String getName()

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

string name = 1;

Returns
Type Description
ByteString

The bytes for name.