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 TypeMethodDescriptionboolean
Gets the key encryption or signature algorithm.getKeyId()
Gets the Key ID.int
hashCode()
(package private) boolean
represents
(R key) Determines whether or not the known components of this key match the known components of another key.(package private) JsonObjectBuilder
serializeTo
(JsonObjectBuilder jwkBuilder) Adds serialized JWK attributes to a JSON object builder.Methods inherited from class iu.crypt.JsonCertificateReference
getCertificateChain, getCertificateSha256Thumbprint, getCertificateThumbprint, getCertificateUri, toString, verifiedCertificateChain
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:WebKeyReference
Gets the Key ID.- Specified by:
getKeyId
in interfaceWebKeyReference
- Returns:
- Key ID
-
getAlgorithm
Description copied from interface:WebKeyReference
Gets the key encryption or signature algorithm.- Specified by:
getAlgorithm
in interfaceWebKeyReference
- Returns:
WebKey.Algorithm
-
hashCode
public int hashCode()- Overrides:
hashCode
in classJsonCertificateReference<R extends JsonKeyReference<R>>
-
equals
- Overrides:
equals
in classJsonCertificateReference<R extends JsonKeyReference<R>>
-
serializeTo
Adds serialized JWK attributes to a JSON object builder.- Overrides:
serializeTo
in 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:
represents
in classJsonCertificateReference<R extends JsonKeyReference<R>>
- Parameters:
key
-WebKey
- Returns:
- true if all non-null components of both keys match
-