Class Utils

java.lang.Object
com.iizix.push.vapid.Utils

public class Utils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    combinedLength(byte[]... arrays)
    Compute combined array length
    static byte[]
    concat(byte[]... arrays)
    Utility to concat byte arrays
    static byte[]
    encode(org.bouncycastle.jce.interfaces.ECPrivateKey privateKey)
     
    static byte[]
    encode(org.bouncycastle.jce.interfaces.ECPublicKey publicKey)
    Get the uncompressed encoding of the public key point.
    static PrivateKey
    loadPrivateKey(byte[] decodedPrivateKey)
    Load the private key from a byte array
    static PrivateKey
    loadPrivateKey(String encodedPrivateKey)
    Load the private key from a URL-safe base64 encoded string
    static PublicKey
    loadPublicKey(byte[] decodedPublicKey)
    Load the public key from a byte array.
    static PublicKey
    loadPublicKey(String encodedPublicKey)
    Load the public key from a URL-safe base64 encoded string.
    static org.bouncycastle.jce.interfaces.ECPublicKey
    loadPublicKey(org.bouncycastle.jce.interfaces.ECPrivateKey privateKey)
    Load a public key from the private key.
    static byte[]
    toByteArray(int integer, int size)
    Create a byte array of the given length from the given integer.
    static boolean
    verifyKeyPair(PrivateKey privateKey, PublicKey publicKey)
    Verify that the private key belongs to the public key.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait