@Immutable public final class X509CertificateConfirmation extends Object
Constructor and Description |
---|
X509CertificateConfirmation(com.nimbusds.jose.util.Base64URL x5tS256)
Creates a new X.509 certificate SHA-256 confirmation.
|
Modifier and Type | Method and Description |
---|---|
com.nimbusds.jwt.JWTClaimsSet |
applyTo(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
Applies this X.509 certificate SHA-256 confirmation to the specified
JWT claims set.
|
boolean |
equals(Object o) |
com.nimbusds.jose.util.Base64URL |
getValue()
Returns the X.509 certificate SHA-256 thumbprint.
|
int |
hashCode() |
static X509CertificateConfirmation |
of(X509Certificate x509Cert)
Creates a confirmation of the specified X.509 certificate.
|
static X509CertificateConfirmation |
parse(net.minidev.json.JSONObject jsonObject)
Parses a X.509 certificate confirmation from the specified JSON
object representation of a JWT claims set.
|
static X509CertificateConfirmation |
parse(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
Parses a X.509 certificate confirmation from the specified JWT
claims set.
|
static X509CertificateConfirmation |
parseFromConfirmationJSONObject(net.minidev.json.JSONObject cnf)
Parses a X.509 certificate confirmation from the specified
confirmation ("cnf") JSON object.
|
net.minidev.json.JSONObject |
toJSONObject()
Returns this X.509 certificate SHA-256 confirmation as a JSON
object.
|
Map.Entry<String,net.minidev.json.JSONObject> |
toJWTClaim()
Returns this X.509 certificate SHA-256 confirmation as a JWT claim.
|
public X509CertificateConfirmation(com.nimbusds.jose.util.Base64URL x5tS256)
x5tS256
- The X.509 certificate SHA-256 thumbprint.public com.nimbusds.jose.util.Base64URL getValue()
public net.minidev.json.JSONObject toJSONObject()
Example:
{ "cnf" : { "x5t#S256" : "bwcK0esc3ACC3DB2Y5_lESsXE8o9ltc05O89jdN-dg2" } }
public Map.Entry<String,net.minidev.json.JSONObject> toJWTClaim()
Example:
"cnf" -> { "x5t#S256" : "bwcK0esc3ACC3DB2Y5_lESsXE8o9ltc05O89jdN-dg2" }
public com.nimbusds.jwt.JWTClaimsSet applyTo(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
jwtClaimsSet
- The JWT claims set.public static X509CertificateConfirmation parse(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
jwtClaimsSet
- The JWT claims set.null
if not
found.public static X509CertificateConfirmation parse(net.minidev.json.JSONObject jsonObject)
jsonObject
- The JSON object.null
if not
found.public static X509CertificateConfirmation parseFromConfirmationJSONObject(net.minidev.json.JSONObject cnf)
cnf
- The confirmation JSON object, null
if none.null
if not
found.public static X509CertificateConfirmation of(X509Certificate x509Cert)
x509Cert
- The X.509 certificate.Copyright © 2018 Connect2id Ltd.. All rights reserved.