public class JOSEUtil extends Object
Constructor and Description |
---|
JOSEUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
constantTimeAreEqual(byte[] a,
byte[] b)
Checks the specified arrays for equality in constant time.
|
static String[] |
split(String s)
Splits a serialized JOSE object into its Base64URL-encoded parts.
|
public static boolean constantTimeAreEqual(byte[] a, byte[] b)
a
- The first array. Must not be null
.b
- The second array. Must not be null
.true
if the two arrays are equal, else false
.public static String[] split(String s) throws ParseException
s
- The serialized JOSE object to split. Must not be null
.ParseException
- If the specified string couldn't be split into three or five Base64URL-encoded parts.Copyright © 2016. All rights reserved.