public class JWS extends JWT
This class represents a JSON Web Signature.
Modifier | Constructor and Description |
---|---|
protected |
JWS(javax.json.JsonObject headers,
javax.json.JsonObject claims,
byte[] key)
Creates a new instance using the claims set and values from the given
JsonObject . |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Ecodes the JSON representation of a JWT according with the specification.
|
String |
getAlgorithm()
Identifies the cryptographic algorithm used to secure the JWS.
|
getAudience, getClaim, getClaims, getClaimValues, getContentType, getExpiration, getExpirationDate, getHeader, getHeaders, getHeaderValues, getId, getIssuedAt, getIssuedAtDate, getIssuer, getNotBefore, getNotBeforeDate, getSubject, geType, toString
protected JWS(javax.json.JsonObject headers, javax.json.JsonObject claims, byte[] key)
Creates a new instance using the claims set and values from the given JsonObject
.
headers
- claims
- The claims set and their respective values.public String getAlgorithm()
Identifies the cryptographic algorithm used to secure the JWS.
public String encode()
JWT
Ecodes the JSON representation of a JWT according with the specification.
In order to decode, refer to the corresponding JWTBuilder
of this class.
encode
in class JWT
JWT.encode()
Copyright © 2015. All rights reserved.