| Modifier and Type | Field and Description |
|---|---|
| private static final char[] | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static byte[] | |
| public static String | Returns: Base64 representationThe public key publicKey)Base64 encodes a public key with no chunking. |
| public static String | Returns: Base64 representationThe certificate certificate)Base64 encodes a X509Certificate with no chunking. |
| private static String | |
| private static byte[] | |
| pack-priv static byte[] | |
| public static String | Returns: Fingerprint of the certificatethe certificate certificate)Gets the fingerprint of a certificate using Sha256. |
| private static String | |
| public static String | Returns: the tenant id.the given certificate. certificate)Get the tenant id from the given certificate. |
| private static Optional | |
| public static byte[] | Returns: A new input streamThe key to convert. key)Converts a private key back to a PEM formatted input stream. |
| public static Optional | |
| public static Optional | |
| public static Optional | Returns: Optional of RSAPublicKeythe jwk object jwk)Convert |
| HEX_ARRAY | back to summary |
|---|---|
| private static final char[] HEX_ARRAY | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| AuthUtils | back to summary |
|---|---|
| private AuthUtils() | |
| base64Decode | back to summary |
|---|---|
| public static byte[] base64Decode(String base64) Decode the base64 string. This supports both '+' and '/' as well as '-' and '_'.
| |
| base64EncodeNoChunking | back to summary |
|---|---|
| public static String base64EncodeNoChunking(RSAPublicKey publicKey) Base64 encodes a public key with no chunking.
| |
| base64EncodeNoChunking | back to summary |
|---|---|
| public static String base64EncodeNoChunking(X509Certificate certificate) throws CertificateEncodingException Base64 encodes a X509Certificate with no chunking.
| |
| formatStringWithSeparator | back to summary |
|---|---|
| private static String formatStringWithSeparator(String fingerprint) | |
| getEncodedCertificate | back to summary |
|---|---|
| private static byte[] getEncodedCertificate(X509Certificate certificate) throws CertificateEncodingException | |
| getEncodedCertificateFromPem | back to summary |
|---|---|
| pack-priv static byte[] getEncodedCertificateFromPem(String pemEncodedCertificate) | |
| getFingerPrint | back to summary |
|---|---|
| public static String getFingerPrint(X509Certificate certificate) Gets the fingerprint of a certificate using Sha256. This is the same value that you would get
by running,
| |
| getHex | back to summary |
|---|---|
| private static String getHex(byte[] bytes) Computes the hex representation of a byte array. | |
| getTenantIdFromCertificate | back to summary |
|---|---|
| public static String getTenantIdFromCertificate(X509Certificate certificate) Get the tenant id from the given certificate.
| |
| getValue | back to summary |
|---|---|
| private static Optional | |
| toByteArrayFromRSAPrivateKey | back to summary |
|---|---|
| public static byte[] toByteArrayFromRSAPrivateKey(RSAPrivateKey key) Converts a private key back to a PEM formatted input stream.
| |
| toJwk | back to summary |
|---|---|
| public static Optional Convert JSON string into | |
| toPublicKeyFromJson | back to summary |
|---|---|
| public static Optional Convert JWK JSON string into a | |
| toPublicKeyFromJwk | back to summary |
|---|---|
| public static Optional Convert
| |