Package com.nimbusds.jose.crypto.impl
Class CipherHelper
- java.lang.Object
-
- com.nimbusds.jose.crypto.impl.CipherHelper
-
@ThreadSafe public class CipherHelper extends java.lang.ObjectHelper 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 javax.crypto.CiphergetInstance(java.lang.String name, java.security.Provider provider)Instantiates a cipher with an (optional) JCA provider.
-
-
-
Method Detail
-
getInstance
public static javax.crypto.Cipher getInstance(java.lang.String name, java.security.Provider provider) throws java.security.NoSuchAlgorithmException, javax.crypto.NoSuchPaddingExceptionInstantiates 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:
java.security.NoSuchAlgorithmExceptionjavax.crypto.NoSuchPaddingException
-
-