Class Cipher
public class Cipher : JVMBridgeBase<Cipher>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Cipher>Cipher
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Cipher>.IsAssignableFrom(IJavaType)JVMBridgeBase<Cipher>.IsAssignableFrom<T>()JVMBridgeBase<Cipher>.Execute<T>(params T[])JVMBridgeBase<Cipher>.DynBridgeClazzJVMBridgeBase<Cipher>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Cipher()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Cipher()
Cipher(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Cipher(params object[] args)
Parameters
args
object[]
Properties
Algorithm
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/crypto/Cipher.html#getAlgorithm()
public String Algorithm { get; }
Property Value
BlockSize
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/crypto/Cipher.html#getBlockSize()
public int BlockSize { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
DECRYPT_MODE
public static int DECRYPT_MODE { get; }
Property Value
ENCRYPT_MODE
public static int ENCRYPT_MODE { get; }
Property Value
ExemptionMechanism
public ExemptionMechanism ExemptionMechanism { get; }
Property Value
IV
public byte[] IV { get; }
Property Value
- byte[]
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
PRIVATE_KEY
public static int PRIVATE_KEY { get; }
Property Value
PUBLIC_KEY
public static int PUBLIC_KEY { get; }
Property Value
Parameters
public AlgorithmParameters Parameters { get; }
Property Value
Provider
public Provider Provider { get; }
Property Value
SECRET_KEY
public static int SECRET_KEY { get; }
Property Value
UNWRAP_MODE
public static int UNWRAP_MODE { get; }
Property Value
WRAP_MODE
public static int WRAP_MODE { get; }
Property Value
Methods
DoFinal()
public byte[] DoFinal()
Returns
Exceptions
DoFinal(ByteBuffer, ByteBuffer)
public int DoFinal(ByteBuffer arg0, ByteBuffer arg1)
Parameters
arg0
ByteBufferarg1
ByteBuffer
Returns
Exceptions
DoFinal(byte[])
public byte[] DoFinal(byte[] arg0)
Parameters
Returns
Exceptions
DoFinal(byte[], int)
public int DoFinal(byte[] arg0, int arg1)
Parameters
Returns
Exceptions
DoFinal(byte[], int, int)
public byte[] DoFinal(byte[] arg0, int arg1, int arg2)
Parameters
Returns
Exceptions
DoFinal(byte[], int, int, byte[])
public int DoFinal(byte[] arg0, int arg1, int arg2, byte[] arg3)
Parameters
Returns
Exceptions
DoFinal(byte[], int, int, byte[], int)
public int DoFinal(byte[] arg0, int arg1, int arg2, byte[] arg3, int arg4)
Parameters
Returns
Exceptions
GetInstance(String)
public static Cipher GetInstance(String arg0)
Parameters
Returns
Exceptions
GetInstance(String, String)
public static Cipher GetInstance(String arg0, String arg1)
Parameters
Returns
Exceptions
GetInstance(String, Provider)
public static Cipher GetInstance(String arg0, Provider arg1)
Parameters
Returns
Exceptions
GetMaxAllowedKeyLength(String)
public static int GetMaxAllowedKeyLength(String arg0)
Parameters
Returns
Exceptions
GetMaxAllowedParameterSpec(String)
public static AlgorithmParameterSpec GetMaxAllowedParameterSpec(String arg0)
Parameters
Returns
Exceptions
GetOutputSize(int)
public int GetOutputSize(int arg0)
Parameters
Returns
Init(int, Certificate)
public void Init(int arg0, Certificate arg1)
Parameters
arg0
intarg1
Certificate
Exceptions
Init(int, Certificate, SecureRandom)
public void Init(int arg0, Certificate arg1, SecureRandom arg2)
Parameters
arg0
intarg1
Certificatearg2
SecureRandom
Exceptions
Init(int, Key)
public void Init(int arg0, Key arg1)
Parameters
Exceptions
Init(int, Key, AlgorithmParameters)
public void Init(int arg0, Key arg1, AlgorithmParameters arg2)
Parameters
arg0
intarg1
Keyarg2
AlgorithmParameters
Exceptions
Init(int, Key, AlgorithmParameters, SecureRandom)
public void Init(int arg0, Key arg1, AlgorithmParameters arg2, SecureRandom arg3)
Parameters
arg0
intarg1
Keyarg2
AlgorithmParametersarg3
SecureRandom
Exceptions
Init(int, Key, SecureRandom)
public void Init(int arg0, Key arg1, SecureRandom arg2)
Parameters
arg0
intarg1
Keyarg2
SecureRandom
Exceptions
Init(int, Key, AlgorithmParameterSpec)
public void Init(int arg0, Key arg1, AlgorithmParameterSpec arg2)
Parameters
arg0
intarg1
Keyarg2
AlgorithmParameterSpec
Exceptions
Init(int, Key, AlgorithmParameterSpec, SecureRandom)
public void Init(int arg0, Key arg1, AlgorithmParameterSpec arg2, SecureRandom arg3)
Parameters
arg0
intarg1
Keyarg2
AlgorithmParameterSpecarg3
SecureRandom
Exceptions
Unwrap(byte[], String, int)
public Key Unwrap(byte[] arg0, String arg1, int arg2)
Parameters
Returns
Exceptions
Update(ByteBuffer, ByteBuffer)
public int Update(ByteBuffer arg0, ByteBuffer arg1)
Parameters
arg0
ByteBufferarg1
ByteBuffer
Returns
Exceptions
Update(byte[])
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/javax/crypto/Cipher.html#update(byte[])
public byte[] Update(byte[] arg0)
Parameters
Returns
Update(byte[], int, int)
public byte[] Update(byte[] arg0, int arg1, int arg2)
Parameters
Returns
Update(byte[], int, int, byte[])
public int Update(byte[] arg0, int arg1, int arg2, byte[] arg3)
Parameters
Returns
Exceptions
Update(byte[], int, int, byte[], int)
public int Update(byte[] arg0, int arg1, int arg2, byte[] arg3, int arg4)
Parameters
Returns
Exceptions
UpdateAAD(ByteBuffer)
public void UpdateAAD(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
UpdateAAD(byte[])
public void UpdateAAD(byte[] arg0)
Parameters
UpdateAAD(byte[], int, int)
public void UpdateAAD(byte[] arg0, int arg1, int arg2)
Parameters
Wrap(Key)
public byte[] Wrap(Key arg0)