public final class DerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
decodeCertificate(InputStream is) |
static PrivateKey |
decodePrivateKey(byte[] der) |
static PrivateKey |
decodePrivateKey(InputStream is) |
static PublicKey |
decodePublicKey(byte[] der) |
public static PrivateKey decodePrivateKey(InputStream is) throws Exception
Exception
public static PublicKey decodePublicKey(byte[] der) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchProviderException
public static X509Certificate decodeCertificate(InputStream is) throws Exception
Exception
public static PrivateKey decodePrivateKey(byte[] der) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchProviderException
Copyright © 2019 JBoss by Red Hat. All rights reserved.