ReadonlyjwtsThis is BlueStep's implementation of the io.jsonwebtoken java library.
B.crypto.jwts.Jwts is the jjwt 0.13.0 io.jsonwebtoken.Jwts class
(0.13.0 docs). Its static factories
builder() and parser() are declared; the class's other statics (claims(), header()) are
callable too, but undeclared.
Parse with Jwts.parser().verifyWith(key).build().parseSignedClaims(token).getPayload().
The 0.11 Jwts.parserBuilder() no longer exists, and setSigningKey / parseClaimsJws / getBody are deprecated.
BSJS type declarations cover only the subset BlueStep needed; ask engineering for more.
Returns a Certificate using a provided type
X.509
BEGIN CERTIFICATE----- XXXXXXXXXXXXXXXXXXXXXXXXXXX -----END CERTIFICATE-----
Returns all Certificates in PKCS#7 or PkiPath formatted certificates
X.509
PKCS#7-formatted certificate
Returns a PrivateKey using a provided algorithm from a PEM encoded using PKCS8 and Base64.
RSA
BEGIN PRIVATE KEY----- XXXXXXXXXXXXXXXXXXXXXXXXXXX -----END PRIVATE KEY-----
Returns a PrivateKey using a provided algorithm from a PEM encoded using PKCS8 as bytes.
RSA
Returns a Public Key using a provided algorithm from a PEM encoded using 509 and Base64.
RSA
BEGIN PUBLIC KEY----- XXXXXXXXXXXXXXXXXXXXXXXXXXX -----END PUBLIC KEY-----
Wraps a [[Java.IO.InputStream]] in a [[Java.IO.DigestInputStream]]
Wraps a [[Java.IO.OutputStream]] in a [[Java.IO.DigestOutputStream]]
Produce a hash using a provided digest algorithm and an InputStream. See also [[secureHash]].
Hash algorithm like SHA-256
What to create a hash from.
Produce a hash using a provided digest algorithm. See also [[secureHash]].
Hash algorithm like SHA-256
What to create a hash from.
Produce a hash using a provided mac algorithm and an InputStream.
Hash algorithm like HmacSHA256
What to create a hash from.
Key to use when getting mac hash.
Returns a [[Java.crypto.MessageDigest]] using a provided MessageDigest algorithm.
Hash algorithm like SHA-256
Returns a Java.ByteArray from a pem
BEGIN PRIVATE KEY----- XXXXXXXXXXXXXXXXXXXXXXXXXXX -----END PRIVATE KEY-----
Returns a signature in Base64 signed using a PrivateKey and updated with stringToSign
SHA256withRSA
Returns a signature as bytes using a PrivateKey and dataToSign
SHA256withRSA
Returns a Signature using a provided algorithm.
SHA256withRSA
Returns a Signature using a provided algorithm.
SHA256withRSA
Provider name
Returns a Signature signed using a PrivateKey and updated with stringToSign.
SHA256withRSA
Returns a Signature signed using a PrivateKey and updated with dataToSign
SHA256withRSA
Returns a Signature using a Certificate
SHA256withRSA
Verifies a Signature using a Certificate and updated with data to verify with a signature.
SHA256withRSA
Base64 or base64url, padded or not, as [[sign]] returns and as a JWT carries it.
Verifies a Signature using a Certificate and updated with data
SHA256withRSA
The raw signature bytes.
Verifies a Signature using a PublicKey and updated with data to verify with a signature.
SHA256withRSA
Base64 or base64url, padded or not, as [[sign]] returns and as a JWT carries it.
TODO
Example