public class KeyFactoryUtil extends InitializeObject
mutex| Constructor and Description |
|---|
KeyFactoryUtil() |
KeyFactoryUtil(String algorithm) |
KeyFactoryUtil(String algorithm,
String provider) |
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
copy(PrivateKey key) |
PublicKey |
copy(PublicKey key) |
protected void |
init() |
KeyFactoryUtil |
setAlgorithm(String algorithm) |
KeyFactoryUtil |
setProvider(String provider) |
PrivateKey |
toPrivateKey(InputStream keyInDer) |
PrivateKey |
toPrivateKey(String keyInPem) |
PublicKey |
toPublicKey(InputStream keyInDer) |
PublicKey |
toPublicKey(String keyInPem) |
assertNotInitialized, destroy, initializepublic KeyFactoryUtil()
public KeyFactoryUtil(String algorithm)
protected void init()
throws Exception
init in class InitializeObjectExceptionpublic PrivateKey toPrivateKey(String keyInPem) throws CryptoException
CryptoExceptionpublic PrivateKey toPrivateKey(InputStream keyInDer) throws IOException, CryptoException
IOExceptionCryptoExceptionpublic PublicKey toPublicKey(String keyInPem) throws CryptoException
CryptoExceptionpublic PublicKey toPublicKey(InputStream keyInDer) throws IOException, CryptoException
IOExceptionCryptoExceptionpublic PrivateKey copy(PrivateKey key) throws CryptoException
CryptoExceptionpublic PublicKey copy(PublicKey key) throws CryptoException
CryptoExceptionpublic KeyFactoryUtil setAlgorithm(String algorithm)
public KeyFactoryUtil setProvider(String provider)
Copyright © 2017. All rights reserved.