Package com.nimbusds.oauth2.sdk.auth
Class X509CertificateConfirmation
java.lang.Object
com.nimbusds.oauth2.sdk.cnf.AbstractConfirmation
com.nimbusds.oauth2.sdk.auth.X509CertificateConfirmation
X.509 certificate SHA-256 confirmation.
-
Constructor Summary
ConstructorsConstructorDescriptionX509CertificateConfirmation(com.nimbusds.jose.util.Base64URL x5tS256) Creates a new X.509 certificate SHA-256 confirmation. -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.nimbusds.jose.util.Base64URLgetValue()Returns the X.509 certificate SHA-256 thumbprint.inthashCode()static X509CertificateConfirmationof(X509Certificate x509Cert) Creates a confirmation of the specified X.509 certificate.static X509CertificateConfirmationparse(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet) Parses an X.509 certificate confirmation from the specified JWT claims set.static X509CertificateConfirmationparse(net.minidev.json.JSONObject jsonObject) Parses an X.509 certificate confirmation from the specified JSON object representation of a JWT claims set.static X509CertificateConfirmationparseFromConfirmationJSONObject(net.minidev.json.JSONObject cnf) Parses an X.509 certificate confirmation from the specified confirmation ("cnf") JSON object.Returns this confirmation as a JWT claim.Methods inherited from class com.nimbusds.oauth2.sdk.cnf.AbstractConfirmation
applyTo, mergeInto, parseConfirmationJSONObject, toJSONObject, toString
-
Constructor Details
-
X509CertificateConfirmation
Creates a new X.509 certificate SHA-256 confirmation.- Parameters:
x5tS256- The X.509 certificate SHA-256 thumbprint. Must not benull.
-
-
Method Details
-
getValue
Returns the X.509 certificate SHA-256 thumbprint.- Returns:
- The X.509 certificate SHA-256 thumbprint.
-
toJWTClaim
Description copied from class:AbstractConfirmationReturns this confirmation as a JWT claim.Example:
"cnf" : { "x5t#S256" : "bwcK0esc3ACC3DB2Y5_lESsXE8o9ltc05O89jdN-dg2" }- Specified by:
toJWTClaimin classAbstractConfirmation- Returns:
- The JWT claim name / value.
-
equals
-
hashCode
-
parse
Parses an X.509 certificate confirmation from the specified JWT claims set.- Parameters:
jwtClaimsSet- The JWT claims set.- Returns:
- The X.509 certificate confirmation,
nullif not found.
-
parse
Parses an X.509 certificate confirmation from the specified JSON object representation of a JWT claims set.- Parameters:
jsonObject- The JSON object.- Returns:
- The X.509 certificate confirmation,
nullif not found.
-
parseFromConfirmationJSONObject
public static X509CertificateConfirmation parseFromConfirmationJSONObject(net.minidev.json.JSONObject cnf) Parses an X.509 certificate confirmation from the specified confirmation ("cnf") JSON object.- Parameters:
cnf- The confirmation JSON object,nullif none.- Returns:
- The X.509 certificate confirmation,
nullif not found.
-
of
Creates a confirmation of the specified X.509 certificate.- Parameters:
x509Cert- The X.509 certificate.- Returns:
- The X.509 certificate confirmation.
-