java.lang.Object
iu.crypt.JsonCertificateReference<R>
iu.crypt.JsonKeyReference<R>
- Type Parameters:
R- reference type
- All Implemented Interfaces:
WebCertificateReference,WebKeyReference
class JsonKeyReference<R extends JsonKeyReference<R>>
extends JsonCertificateReference<R>
implements WebKeyReference
Encapsulates JSON properties that refer to or verify an X.509 certificate
chain.
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.iu.crypt.WebCertificateReference
WebCertificateReference.Builder<B extends WebCertificateReference.Builder<B>>Nested classes/interfaces inherited from interface edu.iu.crypt.WebKeyReference
WebKeyReference.Builder<B extends WebKeyReference.Builder<B>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the key encryption or signature algorithm.getKeyId()Gets the Key ID.inthashCode()(package private) booleanrepresents(R key) Determines whether or not the known components of this key match the known components of another key.(package private) JsonObjectBuilderserializeTo(JsonObjectBuilder jwkBuilder) Adds serialized JWK attributes to a JSON object builder.Methods inherited from class iu.crypt.JsonCertificateReference
getCertificateChain, getCertificateSha256Thumbprint, getCertificateThumbprint, getCertificateUri, toString, verifiedCertificateChainMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.iu.crypt.WebCertificateReference
getCertificateChain, getCertificateSha256Thumbprint, getCertificateThumbprint, getCertificateUri
-
Constructor Details
-
JsonKeyReference
JsonKeyReference(JsonValue jwk) Constructor.- Parameters:
jwk-JsonObject
-
-
Method Details
-
getKeyId
Description copied from interface:WebKeyReferenceGets the Key ID.- Specified by:
getKeyIdin interfaceWebKeyReference- Returns:
- Key ID
-
getAlgorithm
Description copied from interface:WebKeyReferenceGets the key encryption or signature algorithm.- Specified by:
getAlgorithmin interfaceWebKeyReference- Returns:
WebKey.Algorithm
-
hashCode
public int hashCode()- Overrides:
hashCodein classJsonCertificateReference<R extends JsonKeyReference<R>>
-
equals
- Overrides:
equalsin classJsonCertificateReference<R extends JsonKeyReference<R>>
-
serializeTo
Adds serialized JWK attributes to a JSON object builder.- Overrides:
serializeToin classJsonCertificateReference<R extends JsonKeyReference<R>>- Parameters:
jwkBuilder-JsonObjectBuilder- Returns:
- jwkBuilder
-
represents
Determines whether or not the known components of this key match the known components of another key.- Overrides:
representsin classJsonCertificateReference<R extends JsonKeyReference<R>>- Parameters:
key-WebKey- Returns:
- true if all non-null components of both keys match
-