public class SymmetricAlgorithm extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.SymmetricAlgorithm
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Cryptography
|
static java.lang.String |
className
Qualified class name: System.Security.Cryptography.SymmetricAlgorithm
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
SymmetricAlgorithm() |
SymmetricAlgorithm(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static SymmetricAlgorithm |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into SymmetricAlgorithm, a cast assert is made to check if types are compatible. |
void |
Clear() |
void |
close() |
static SymmetricAlgorithm |
Create() |
static SymmetricAlgorithm |
Create(java.lang.String algName) |
ICryptoTransform |
CreateDecryptor() |
ICryptoTransform |
CreateDecryptor(byte[] rgbKey,
byte[] rgbIV) |
ICryptoTransform |
CreateDecryptor(JCORefOut dupParam0,
JCORefOut dupParam1) |
ICryptoTransform |
CreateEncryptor() |
ICryptoTransform |
CreateEncryptor(byte[] rgbKey,
byte[] rgbIV) |
ICryptoTransform |
CreateEncryptor(JCORefOut dupParam0,
JCORefOut dupParam1) |
byte[] |
DecryptCbc(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode) |
byte[] |
DecryptCbc(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2) |
byte[] |
DecryptCfb(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits) |
byte[] |
DecryptCfb(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2,
int dupParam3) |
byte[] |
DecryptEcb(byte[] ciphertext,
PaddingMode paddingMode) |
byte[] |
DecryptEcb(JCORefOut dupParam0,
PaddingMode dupParam1) |
void |
Dispose() |
byte[] |
EncryptCbc(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode) |
byte[] |
EncryptCbc(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2) |
byte[] |
EncryptCfb(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits) |
byte[] |
EncryptCfb(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2,
int dupParam3) |
byte[] |
EncryptEcb(byte[] plaintext,
PaddingMode paddingMode) |
byte[] |
EncryptEcb(JCORefOut dupParam0,
PaddingMode dupParam1) |
void |
GenerateIV() |
void |
GenerateKey() |
int |
getBlockSize() |
int |
GetCiphertextLengthCbc(int plaintextLength,
PaddingMode paddingMode) |
int |
GetCiphertextLengthCfb(int plaintextLength,
PaddingMode paddingMode,
int feedbackSizeInBits) |
int |
GetCiphertextLengthEcb(int plaintextLength,
PaddingMode paddingMode) |
int |
getFeedbackSize() |
byte[] |
getIV() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
byte[] |
getKey() |
int |
getKeySize() |
KeySizes[] |
getLegalBlockSizes() |
KeySizes[] |
getLegalKeySizes() |
CipherMode |
getMode() |
PaddingMode |
getPadding() |
void |
setBlockSize(int BlockSize) |
void |
setFeedbackSize(int FeedbackSize) |
void |
setIV(byte[] IV) |
void |
setJCOInstance(JCObject instance) |
void |
setKey(byte[] Key) |
void |
setKeySize(int KeySize) |
void |
setMode(CipherMode Mode) |
void |
setPadding(PaddingMode Padding) |
boolean |
ValidKeySize(int bitLength) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public SymmetricAlgorithm()
throws java.lang.Throwable
java.lang.Throwablepublic SymmetricAlgorithm(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static SymmetricAlgorithm cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into SymmetricAlgorithm, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedSymmetricAlgorithm instancejava.lang.Throwable - in case of error during cast operationpublic void Clear()
throws java.lang.Throwable
java.lang.Throwablepublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic static SymmetricAlgorithm Create() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
public static SymmetricAlgorithm Create(java.lang.String algName) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, InvalidOperationException, TypeLoadException, FileLoadException, NotSupportedException, CryptographicException, NullReferenceException
public ICryptoTransform CreateDecryptor() throws java.lang.Throwable, PlatformNotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionpublic ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV) throws java.lang.Throwable
java.lang.Throwablepublic ICryptoTransform CreateDecryptor(JCORefOut dupParam0, JCORefOut dupParam1) throws java.lang.Throwable
java.lang.Throwablepublic ICryptoTransform CreateEncryptor() throws java.lang.Throwable, PlatformNotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionpublic ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV) throws java.lang.Throwable
java.lang.Throwablepublic ICryptoTransform CreateEncryptor(JCORefOut dupParam0, JCORefOut dupParam1) throws java.lang.Throwable
java.lang.Throwablepublic byte[] DecryptCbc(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
public byte[] DecryptCbc(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
public byte[] DecryptCfb(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
public byte[] DecryptCfb(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2, int dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
public byte[] DecryptEcb(byte[] ciphertext,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
public byte[] DecryptEcb(JCORefOut dupParam0, PaddingMode dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
public void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException
public byte[] EncryptCbc(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
public byte[] EncryptCbc(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
public byte[] EncryptCfb(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
CryptographicException
public byte[] EncryptCfb(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2, int dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, CryptographicException
public byte[] EncryptEcb(byte[] plaintext,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
public byte[] EncryptEcb(JCORefOut dupParam0, PaddingMode dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
public void GenerateIV()
throws java.lang.Throwable
java.lang.Throwablepublic void GenerateKey()
throws java.lang.Throwable
java.lang.Throwablepublic int getBlockSize()
throws java.lang.Throwable
java.lang.Throwablepublic int GetCiphertextLengthCbc(int plaintextLength,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
public int GetCiphertextLengthCfb(int plaintextLength,
PaddingMode paddingMode,
int feedbackSizeInBits)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
InvalidOperationException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
public int GetCiphertextLengthEcb(int plaintextLength,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
public int getFeedbackSize()
throws java.lang.Throwable
java.lang.Throwablepublic byte[] getIV()
throws java.lang.Throwable,
PlatformNotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectJCType representing the CLR Type of the instantiated Classpublic byte[] getKey()
throws java.lang.Throwable,
PlatformNotSupportedException
java.lang.ThrowablePlatformNotSupportedExceptionpublic int getKeySize()
throws java.lang.Throwable
java.lang.Throwablepublic final KeySizes[] getLegalBlockSizes() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionpublic final KeySizes[] getLegalKeySizes() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
java.lang.ThrowableNotSupportedExceptionArgumentExceptionPlatformNotSupportedExceptionpublic CipherMode getMode() throws java.lang.Throwable
java.lang.Throwablepublic PaddingMode getPadding() throws java.lang.Throwable
java.lang.Throwablepublic void setBlockSize(int BlockSize)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
CryptographicException
public void setFeedbackSize(int FeedbackSize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException
public void setIV(byte[] IV)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
public void setJCOInstance(JCObject instance)
setJCOInstance in class NetObjectpublic void setKey(byte[] Key)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
public void setKeySize(int KeySize)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException
public void setMode(CipherMode Mode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, CryptographicException
public void setPadding(PaddingMode Padding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, CryptographicException
public boolean ValidKeySize(int bitLength)
throws java.lang.Throwable,
PlatformNotSupportedException
java.lang.ThrowablePlatformNotSupportedException