Readonly
jwtsThis is BlueStep's implentation of the io.jsonwebtoken java library.
We have exposed the entirety of the library as it is documented in the official version 0.11.5 documentation, however bsjs documentation for this object will only extend to methods/classes required for our needs as of the time of this implementation.
Clearly more robust usage of this library is possible if we were to provide access to additional objects, and should such a need arise please contact the BlueStep engineering team to make a request.
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
Verifies a Signature using a Certificate and updated with data
SHA256withRSA
Verifies a Signature using a PublicKey and updated with data to verify with a signature.
SHA256withRSA
TODO
Example