public class SymmetricAlgorithm extends NetObject implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/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=9.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()
Invokes the .NET member Clear.
|
void |
close() |
static SymmetricAlgorithm |
Create()
Invokes the .NET member Create.
|
static SymmetricAlgorithm |
Create(java.lang.String algName)
Invokes the .NET member Create.
|
ICryptoTransform |
CreateDecryptor()
Invokes the .NET member CreateDecryptor.
|
ICryptoTransform |
CreateDecryptor(byte[] rgbKey,
byte[] rgbIV)
Invokes the .NET member CreateDecryptor.
|
ICryptoTransform |
CreateDecryptor(JCORefOut dupParam0,
JCORefOut dupParam1)
Invokes the .NET member CreateDecryptor.
|
ICryptoTransform |
CreateEncryptor()
Invokes the .NET member CreateEncryptor.
|
ICryptoTransform |
CreateEncryptor(byte[] rgbKey,
byte[] rgbIV)
Invokes the .NET member CreateEncryptor.
|
ICryptoTransform |
CreateEncryptor(JCORefOut dupParam0,
JCORefOut dupParam1)
Invokes the .NET member CreateEncryptor.
|
byte[] |
DecryptCbc(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode)
Invokes the .NET member DecryptCbc.
|
byte[] |
DecryptCbc(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2)
Invokes the .NET member DecryptCbc.
|
byte[] |
DecryptCfb(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits)
Invokes the .NET member DecryptCfb.
|
byte[] |
DecryptCfb(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2,
int dupParam3)
Invokes the .NET member DecryptCfb.
|
byte[] |
DecryptEcb(byte[] ciphertext,
PaddingMode paddingMode)
Invokes the .NET member DecryptEcb.
|
byte[] |
DecryptEcb(JCORefOut dupParam0,
PaddingMode dupParam1)
Invokes the .NET member DecryptEcb.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
byte[] |
EncryptCbc(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode)
Invokes the .NET member EncryptCbc.
|
byte[] |
EncryptCbc(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2)
Invokes the .NET member EncryptCbc.
|
byte[] |
EncryptCfb(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits)
Invokes the .NET member EncryptCfb.
|
byte[] |
EncryptCfb(JCORefOut dupParam0,
JCORefOut dupParam1,
PaddingMode dupParam2,
int dupParam3)
Invokes the .NET member EncryptCfb.
|
byte[] |
EncryptEcb(byte[] plaintext,
PaddingMode paddingMode)
Invokes the .NET member EncryptEcb.
|
byte[] |
EncryptEcb(JCORefOut dupParam0,
PaddingMode dupParam1)
Invokes the .NET member EncryptEcb.
|
void |
GenerateIV()
Invokes the .NET member GenerateIV.
|
void |
GenerateKey()
Invokes the .NET member GenerateKey.
|
int |
getBlockSize()
Gets the value of the .NET property BlockSize.
|
int |
GetCiphertextLengthCbc(int plaintextLength,
PaddingMode paddingMode)
Invokes the .NET member GetCiphertextLengthCbc.
|
int |
GetCiphertextLengthCfb(int plaintextLength,
PaddingMode paddingMode,
int feedbackSizeInBits)
Invokes the .NET member GetCiphertextLengthCfb.
|
int |
GetCiphertextLengthEcb(int plaintextLength,
PaddingMode paddingMode)
Invokes the .NET member GetCiphertextLengthEcb.
|
int |
getFeedbackSize()
Gets the value of the .NET property FeedbackSize.
|
byte[] |
getIV()
Gets the value of the .NET property IV.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
byte[] |
getKey()
Gets the value of the .NET property Key.
|
int |
getKeySize()
Gets the value of the .NET property KeySize.
|
KeySizes[] |
getLegalBlockSizes()
Gets the value of the .NET property LegalBlockSizes.
|
KeySizes[] |
getLegalKeySizes()
Gets the value of the .NET property LegalKeySizes.
|
CipherMode |
getMode()
Gets the value of the .NET property Mode.
|
PaddingMode |
getPadding()
Gets the value of the .NET property Padding.
|
void |
setBlockSize(int BlockSize)
Sets the value of the .NET property BlockSize.
|
void |
setFeedbackSize(int FeedbackSize)
Sets the value of the .NET property FeedbackSize.
|
void |
setIV(byte[] IV)
Sets the value of the .NET property IV.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setKey(byte[] Key)
Sets the value of the .NET property Key.
|
void |
setKeySize(int KeySize)
Sets the value of the .NET property KeySize.
|
void |
setMode(CipherMode Mode)
Sets the value of the .NET property Mode.
|
void |
setPadding(PaddingMode Padding)
Sets the value of the .NET property Padding.
|
boolean |
ValidKeySize(int bitLength)
Invokes the .NET member ValidKeySize.
|
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
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic 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.Throwable - if the call fails in the bridge or in the CLRpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic static SymmetricAlgorithm Create() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic static SymmetricAlgorithm Create(java.lang.String algName) throws java.lang.Throwable
algName - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic ICryptoTransform CreateDecryptor() throws java.lang.Throwable, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itpublic ICryptoTransform CreateDecryptor(byte[] rgbKey, byte[] rgbIV) throws java.lang.Throwable
rgbKey - the argument of type byte[]rgbIV - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ICryptoTransform CreateDecryptor(JCORefOut dupParam0, JCORefOut dupParam1) throws java.lang.Throwable
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic ICryptoTransform CreateEncryptor() throws java.lang.Throwable, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itpublic ICryptoTransform CreateEncryptor(byte[] rgbKey, byte[] rgbIV) throws java.lang.Throwable
rgbKey - the argument of type byte[]rgbIV - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic ICryptoTransform CreateEncryptor(JCORefOut dupParam0, JCORefOut dupParam1) throws java.lang.Throwable
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] DecryptCbc(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
ciphertext - the argument of type byte[]iv - the argument of type byte[]paddingMode - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] DecryptCbc(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] DecryptCfb(byte[] ciphertext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
ciphertext - the argument of type byte[]iv - the argument of type byte[]paddingMode - the argument of type PaddingModefeedbackSizeInBits - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] DecryptCfb(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2, int dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type PaddingModedupParam3 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] DecryptEcb(byte[] ciphertext,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
ciphertext - the argument of type byte[]paddingMode - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] DecryptEcb(JCORefOut dupParam0, PaddingMode dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException,
PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic byte[] EncryptCbc(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
plaintext - the argument of type byte[]iv - the argument of type byte[]paddingMode - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] EncryptCbc(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] EncryptCfb(byte[] plaintext,
byte[] iv,
PaddingMode paddingMode,
int feedbackSizeInBits)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
ArrayTypeMismatchException,
NotSupportedException,
CryptographicException
plaintext - the argument of type byte[]iv - the argument of type byte[]paddingMode - the argument of type PaddingModefeedbackSizeInBits - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] EncryptCfb(JCORefOut dupParam0, JCORefOut dupParam1, PaddingMode dupParam2, int dupParam3) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, CryptographicException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type JCORefOutdupParam2 - the argument of type PaddingModedupParam3 - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] EncryptEcb(byte[] plaintext,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
plaintext - the argument of type byte[]paddingMode - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic byte[] EncryptEcb(JCORefOut dupParam0, PaddingMode dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CryptographicException
dupParam0 - the argument of type JCORefOutdupParam1 - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void GenerateIV()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void GenerateKey()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int getBlockSize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic int GetCiphertextLengthCbc(int plaintextLength,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
plaintextLength - the argument of type intpaddingMode - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic int GetCiphertextLengthCfb(int plaintextLength,
PaddingMode paddingMode,
int feedbackSizeInBits)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException,
IndexOutOfRangeException
plaintextLength - the argument of type intpaddingMode - the argument of type PaddingModefeedbackSizeInBits - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itpublic int GetCiphertextLengthEcb(int plaintextLength,
PaddingMode paddingMode)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
IndexOutOfRangeException,
FormatException
plaintextLength - the argument of type intpaddingMode - the argument of type PaddingModejava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itFormatException - if the .NET member raises itpublic int getFeedbackSize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] getIV()
throws java.lang.Throwable,
PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic byte[] getKey()
throws java.lang.Throwable,
PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itpublic int getKeySize()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic final KeySizes[] getLegalBlockSizes() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic final KeySizes[] getLegalKeySizes() throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itpublic CipherMode getMode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic PaddingMode getPadding() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setBlockSize(int BlockSize)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
CryptographicException
BlockSize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setFeedbackSize(int FeedbackSize)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException
FeedbackSize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setIV(byte[] IV)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
IV - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic void setKey(byte[] Key)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CryptographicException
Key - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setKeySize(int KeySize)
throws java.lang.Throwable,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentException,
ArgumentOutOfRangeException,
NotSupportedException,
CultureNotFoundException,
ObjectDisposedException,
InvalidOperationException,
CryptographicException
KeySize - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setMode(CipherMode Mode) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, CryptographicException
Mode - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic void setPadding(PaddingMode Padding) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, CryptographicException
Padding - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itCryptographicException - if the .NET member raises itpublic boolean ValidKeySize(int bitLength)
throws java.lang.Throwable,
PlatformNotSupportedException
bitLength - the argument of type intjava.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises it