Package org.conscrypt
Class KeySpecUtil
- java.lang.Object
-
- org.conscrypt.KeySpecUtil
-
public final class KeySpecUtil extends java.lang.ObjectA utility class for working with KeySpecs.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateKeySpecUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends java.security.spec.KeySpec>
TmakeRawKeySpec(byte[] bytes, java.lang.Class<T> keySpecClass)Creates a KeySpec object for the provided keySpecClass.
-
-
-
Method Detail
-
makeRawKeySpec
public static <T extends java.security.spec.KeySpec> T makeRawKeySpec(byte[] bytes, java.lang.Class<T> keySpecClass) throws java.security.spec.InvalidKeySpecExceptionCreates a KeySpec object for the provided keySpecClass. The KeySpec must be a subclass of EncodedKeySpec and its getFormat() method must return "raw".- Throws:
java.security.spec.InvalidKeySpecException
-
-