Top Inners Fields Constructors Methods
org.keycloak.sdjwt

public Class UndisclosedClaim

extends Disclosable
implements SdJwtClaim
Class Inheritance
All Implemented Interfaces
org.keycloak.sdjwt.SdJwtClaim
Imports
java.util.Collections, .List, .Objects, com.fasterxml.jackson.databind.JsonNode

Author
Francis Pouatcha

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final SdJwtClaimName
private final JsonNode

Constructor Summary

AccessConstructor and Description
private
UndisclosedClaim(SdJwtClaimName claimName, SdJwtSalt salt, JsonNode claimValue)

Method Summary

Modifier and TypeMethod and Description
public static UndisclosedClaim.Builder
public SdJwtClaimName
public String
public List<String>
public JsonNode
getVisibleClaimValue(String hashAlgo)

Implements org.keycloak.sdjwt.SdJwtClaim.getVisibleClaimValue.

Recall no info is visible on these claims in the JWT.
pack-priv Object[]
toArray()

Implements abstract org.keycloak.sdjwt.Disclosable.toArray.

Returns the array of undisclosed value, for encoding (disclosure string) and hashing (_sd digest array in the VC).
Inherited from org.keycloak.sdjwt.Disclosable:
getDisclosureDigestgetDisclosureStringgetSaltgetSaltAsStringtoJsontoString

Field Detail

claimNameback to summary
private final SdJwtClaimName claimName
claimValueback to summary
private final JsonNode claimValue

Constructor Detail

UndisclosedClaimback to summary
private UndisclosedClaim(SdJwtClaimName claimName, SdJwtSalt salt, JsonNode claimValue)

Method Detail

builderback to summary
public static UndisclosedClaim.Builder builder()
getClaimNameback to summary
public SdJwtClaimName getClaimName()

Implements org.keycloak.sdjwt.SdJwtClaim.getClaimName.

Annotations
@Override
getClaimNameAsStringback to summary
public String getClaimNameAsString()

Implements org.keycloak.sdjwt.SdJwtClaim.getClaimNameAsString.

Annotations
@Override
getDisclosureStringsback to summary
public List<String> getDisclosureStrings()

Implements org.keycloak.sdjwt.SdJwtClaim.getDisclosureStrings.

Annotations
@Override
getVisibleClaimValueback to summary
public JsonNode getVisibleClaimValue(String hashAlgo)

Implements org.keycloak.sdjwt.SdJwtClaim.getVisibleClaimValue.

Recall no info is visible on these claims in the JWT.

Annotations
@Override
toArrayback to summary
pack-priv Object[] toArray()

Implements abstract org.keycloak.sdjwt.Disclosable.toArray.

Doc from org.keycloak.sdjwt.Disclosable.toArray.

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

Annotations
@Override
org.keycloak.sdjwt back to summary

public Class UndisclosedClaim.Builder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private SdJwtClaimName
private JsonNode
private SdJwtSalt

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public UndisclosedClaim
public UndisclosedClaim.Builder
withClaimName(String claimName)

public UndisclosedClaim.Builder
public UndisclosedClaim.Builder
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

claimNameback to summary
private SdJwtClaimName claimName
claimValueback to summary
private JsonNode claimValue
saltback to summary
private SdJwtSalt salt

Constructor Detail

Builderback to summary
public Builder()

Method Detail

buildback to summary
public UndisclosedClaim build()
withClaimNameback to summary
public UndisclosedClaim.Builder withClaimName(String claimName)
withClaimValueback to summary
public UndisclosedClaim.Builder withClaimValue(JsonNode claimValue)
withSaltback to summary
public UndisclosedClaim.Builder withSalt(SdJwtSalt salt)