Package com.nimbusds.jose.crypto.impl
Class CipherHelper
- java.lang.Object
-
- com.nimbusds.jose.crypto.impl.CipherHelper
-
@ThreadSafe public class CipherHelper extends Object
Helper utilities for instantiating ciphers.- Version:
- 2014-01-22
- Author:
- Cedric Staub
-
-
Constructor Summary
Constructors Constructor Description CipherHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CiphergetInstance(String name, Provider provider)Instantiates a cipher with an (optional) JCA provider.
-
-
-
Constructor Detail
-
CipherHelper
public CipherHelper()
-
-
Method Detail
-
getInstance
public static Cipher getInstance(String name, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException
Instantiates a cipher with an (optional) JCA provider.- Parameters:
name- The name of the cipher. Must not benull.provider- The JCA provider, ornullto use the default one.- Throws:
NoSuchAlgorithmExceptionNoSuchPaddingException
-
-