Class DerUtils
java.lang.Object
org.jboss.resteasy.security.DerUtils
Extract PrivateKey, PublicKey, and X509Certificate from a DER encoded byte array or file. Usually
generated from openssl
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic X509Certificate
static PrivateKey
decodePrivateKey
(byte[] der) static PrivateKey
Deprecated, for removal: This API element is subject to removal in a future version.static PublicKey
decodePublicKey
(byte[] der)
-
Constructor Details
-
DerUtils
public DerUtils()
-
-
Method Details
-
decodePrivateKey
@Deprecated(forRemoval=true, since="6.2") public static PrivateKey decodePrivateKey(InputStream is) throws Exception Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
decodePublicKey
public static PublicKey decodePublicKey(byte[] der) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchProviderException -
decodeCertificate
- Throws:
Exception
-
decodePrivateKey
public static PrivateKey decodePrivateKey(byte[] der) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchProviderException
-