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 Modifier and Type Method Description static X509CertificatedecodeCertificate(InputStream is)static PrivateKeydecodePrivateKey(byte[] der)static PrivateKeydecodePrivateKey(InputStream is)static PublicKeydecodePublicKey(byte[] der)
-
-
-
Method Detail
-
decodePrivateKey
public static PrivateKey decodePrivateKey(InputStream is) throws Exception
- 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
-
-