@Singleton public class JenkinsBouncyCastleCrypto extends JCECrypto
Crypto
implementation, similar to BouncyCastleCrypto
, but which
always reuse the same BouncyCastleProvider
instance, to avoid a memory leak.Constructor and Description |
---|
JenkinsBouncyCastleCrypto() |
Modifier and Type | Method and Description |
---|---|
Cipher |
cipher(String algorithm) |
certFactory, hmac, hmacSHA1, hmacSHA256, rsaKeyFactory, rsaKeyPairGenerator
public JenkinsBouncyCastleCrypto() throws NoSuchAlgorithmException, CertificateException
public Cipher cipher(String algorithm) throws NoSuchAlgorithmException, NoSuchPaddingException
cipher
in interface Crypto
cipher
in class JCECrypto
NoSuchAlgorithmException
NoSuchPaddingException
BouncyCastleCrypto
Copyright © 2016–2021. All rights reserved.