Package com.nimbusds.oauth2.sdk.cnf
Class AbstractConfirmation
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.cnf.AbstractConfirmation
-
- Direct Known Subclasses:
JWKThumbprintConfirmation
,X509CertificateConfirmation
public abstract class AbstractConfirmation extends Object
Abstract confirmation.
-
-
Constructor Summary
Constructors Constructor Description AbstractConfirmation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description com.nimbusds.jwt.JWTClaimsSet
applyTo(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
Applies this confirmation to the specified JWT claims set.void
mergeInto(net.minidev.json.JSONObject jsonObject)
Merges this X.509 certificate SHA-256 confirmation into the specified JSON object.protected static net.minidev.json.JSONObject
parseConfirmationJSONObject(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
Parses a confirmation JSON object from the specified JWT claims set.net.minidev.json.JSONObject
toJSONObject()
Returns this X.509 certificate SHA-256 confirmation as a JSON object.abstract Map.Entry<String,net.minidev.json.JSONObject>
toJWTClaim()
Returns this confirmation as a JWT claim.String
toString()
-
-
-
Constructor Detail
-
AbstractConfirmation
public AbstractConfirmation()
-
-
Method Detail
-
toJWTClaim
public abstract Map.Entry<String,net.minidev.json.JSONObject> toJWTClaim()
Returns this confirmation as a JWT claim.Example:
"cnf" : { "x5t#S256" : "bwcK0esc3ACC3DB2Y5_lESsXE8o9ltc05O89jdN-dg2" }
- Returns:
- The JWT claim name / value.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns this X.509 certificate SHA-256 confirmation as a JSON object.Example:
{ "cnf" : { "x5t#S256" : "bwcK0esc3ACC3DB2Y5_lESsXE8o9ltc05O89jdN-dg2" } }
- Returns:
- The JSON object.
-
mergeInto
public void mergeInto(net.minidev.json.JSONObject jsonObject)
Merges this X.509 certificate SHA-256 confirmation into the specified JSON object. Any existingcnf
JSON object values will be preserved.Example:
{ "cnf" : { "x5t#S256" : "bwcK0esc3ACC3DB2Y5_lESsXE8o9ltc05O89jdN-dg2" } }
-
applyTo
public com.nimbusds.jwt.JWTClaimsSet applyTo(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
Applies this confirmation to the specified JWT claims set.- Parameters:
jwtClaimsSet
- The JWT claims set.- Returns:
- The modified JWT claims set.
-
parseConfirmationJSONObject
protected static net.minidev.json.JSONObject parseConfirmationJSONObject(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
Parses a confirmation JSON object from the specified JWT claims set.- Parameters:
jwtClaimsSet
- The JWT claims set.- Returns:
- The confirmation JSON object,
null
if none.
-
-