Class JwsHeader
java.lang.Object
com.codename1.backend.security.oauth2.jwt.JwsHeader
The header of a signature that is about to be made: which algorithm, and optionally which key and what type of token.
JwsHeader header = JwsHeader.with(SignatureAlgorithm.ES256).type("at+jwt").build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionEvery header,algfirst.getKeyId()kid, or null to sign with the first key that fits.static JwsHeader.Builderwith(JwsAlgorithm algorithm) A header for a token signed withalgorithm.
-
Method Details
-
with
A header for a token signed withalgorithm. -
getAlgorithm
-
getKeyId
kid, or null to sign with the first key that fits. -
getHeaders
-