Top Description Fields Constructors Methods
org.keycloak.sdjwt

public abstract Class Disclosable

extends Object
Class Inheritance
Known Direct Subclasses
org.keycloak.sdjwt.UndisclosedArrayElement, org.keycloak.sdjwt.UndisclosedClaim
Imports
java.util.Objects, org.keycloak.jose.jws.crypto.HashUtils, com.fasterxml.jackson.core.JsonProcessingException

Handles undisclosed claims and array elements, providing functionality to generate disclosure digests from Base64Url encoded strings. Hiding claims and array elements occurs by including their digests instead of plaintext in the signed verifiable credential.
Author
Francis Pouatcha

Field Summary

Modifier and TypeField and Description
private final SdJwtSalt

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public String
public String
public SdJwtSalt
public String
pack-priv abstract Object[]
toArray()

Returns the array of undisclosed value, for encoding (disclosure string) and hashing (_sd digest array in the VC).

public String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

saltback to summary
private final SdJwtSalt salt

Constructor Detail

Disclosableback to summary
protected Disclosable(SdJwtSalt salt)

Method Detail

getDisclosureDigestback to summary
public String getDisclosureDigest(String hashAlg)
getDisclosureStringback to summary
public String getDisclosureString()
getSaltback to summary
public SdJwtSalt getSalt()
getSaltAsStringback to summary
public String getSaltAsString()
toArrayback to summary
pack-priv abstract Object[] toArray()

Returns the array of undisclosed value, for encoding (disclosure string) and hashing (_sd digest array in the VC).

toJsonback to summary
public String toJson()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override