Package org.jboss.resteasy.jose.jws.util
Class DerUtils
- java.lang.Object
-
- org.jboss.resteasy.jose.jws.util.DerUtils
-
public final class DerUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static X509CertificatedecodeCertificate(InputStream is)static PrivateKeydecodePrivateKey(byte[] der)static PrivateKeydecodePrivateKey(InputStream is)Deprecated, for removal: This API element is subject to removal in a future version.static PublicKeydecodePublicKey(byte[] der)
-
-
-
Method Detail
-
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
public static X509Certificate decodeCertificate(InputStream is) throws Exception
- Throws:
Exception
-
decodePrivateKey
public static PrivateKey decodePrivateKey(byte[] der) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchProviderException
-
-