Package system.security.cryptography
Class Rfc2898DeriveBytes
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.DeriveBytes
-
- system.security.cryptography.Rfc2898DeriveBytes
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class Rfc2898DeriveBytes extends DeriveBytes
The base .NET class managing System.Security.Cryptography.Rfc2898DeriveBytes, System.Security.Cryptography.Algorithms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.Rfc2898DeriveBytes
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.Security.Cryptography.Algorithms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptography.Algorithmsstatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.Rfc2898DeriveBytesstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description Rfc2898DeriveBytes()Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations)Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm)Rfc2898DeriveBytes(java.lang.Object instance)Internal constructor.Rfc2898DeriveBytes(java.lang.String password, byte[] salt)Rfc2898DeriveBytes(java.lang.String password, byte[] salt, int iterations)Rfc2898DeriveBytes(java.lang.String password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm)Rfc2898DeriveBytes(java.lang.String password, int saltSize)Rfc2898DeriveBytes(java.lang.String password, int saltSize, int iterations)Rfc2898DeriveBytes(java.lang.String password, int saltSize, int iterations, HashAlgorithmName hashAlgorithm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rfc2898DeriveBytescast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoRfc2898DeriveBytes, a cast assert is made to check if types are compatible.byte[]CryptDeriveKey(java.lang.String algname, java.lang.String alghashname, int keySize, byte[] rgbIV)byte[]CryptDeriveKey(java.lang.String dupParam0, java.lang.String dupParam1, int dupParam2, JCORefOut dupParam3)byte[]GetBytes(int cb)HashAlgorithmNamegetHashAlgorithm()intgetIterationCount()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typebyte[]getSalt()static byte[]Pbkdf2(byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)static byte[]Pbkdf2(java.lang.String password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength)static byte[]Pbkdf2(java.lang.String dupParam0, JCORefOut dupParam1, int dupParam2, HashAlgorithmName dupParam3, int dupParam4)static byte[]Pbkdf2(JCORefOut dupParam0, JCORefOut dupParam1, int dupParam2, HashAlgorithmName dupParam3, int dupParam4)voidReset()voidsetIterationCount(int IterationCount)voidsetJCOInstance(JCObject instance)voidsetSalt(byte[] Salt)-
Methods inherited from class system.security.cryptography.DeriveBytes
close, Dispose
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography.Algorithms, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Security.Cryptography.Algorithms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.Rfc2898DeriveBytes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, NullReferenceException, CryptographicException, FormatException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionNullReferenceExceptionCryptographicExceptionFormatException
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(byte[] password, byte[] salt, int iterations) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException, CryptographicException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionCryptographicException
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(java.lang.String password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, NullReferenceException, CryptographicException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionNullReferenceExceptionCryptographicException
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(java.lang.String password, byte[] salt, int iterations) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, ObjectDisposedException, RankException, NullReferenceException, CryptographicException, FormatException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIndexOutOfRangeExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionNullReferenceExceptionCryptographicExceptionFormatException
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(java.lang.String password, byte[] salt) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, NullReferenceException, CryptographicException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNullReferenceExceptionCryptographicException
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(java.lang.String password, int saltSize, int iterations, HashAlgorithmName hashAlgorithm) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, CryptographicException
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(java.lang.String password, int saltSize, int iterations) throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, PlatformNotSupportedException, CryptographicException, InvalidOperationException
-
Rfc2898DeriveBytes
public Rfc2898DeriveBytes(java.lang.String password, int saltSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, CryptographicException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classDeriveBytes- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classDeriveBytes- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classDeriveBytes- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classDeriveBytes- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classDeriveBytes
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classDeriveBytes- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Rfc2898DeriveBytes cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoRfc2898DeriveBytes, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Rfc2898DeriveBytesinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
CryptDeriveKey
public byte[] CryptDeriveKey(java.lang.String algname, java.lang.String alghashname, int keySize, byte[] rgbIV) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
CryptDeriveKey
public byte[] CryptDeriveKey(java.lang.String dupParam0, java.lang.String dupParam1, int dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
GetBytes
public byte[] GetBytes(int cb) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException, CryptographicException, ArrayTypeMismatchException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException- Overrides:
GetBytesin classDeriveBytes- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionPlatformNotSupportedExceptionCryptographicExceptionArrayTypeMismatchExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeException
-
Pbkdf2
public static byte[] Pbkdf2(byte[] password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
Pbkdf2
public static byte[] Pbkdf2(JCORefOut dupParam0, JCORefOut dupParam1, int dupParam2, HashAlgorithmName dupParam3, int dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
Pbkdf2
public static byte[] Pbkdf2(java.lang.String password, byte[] salt, int iterations, HashAlgorithmName hashAlgorithm, int outputLength) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
Pbkdf2
public static byte[] Pbkdf2(java.lang.String dupParam0, JCORefOut dupParam1, int dupParam2, HashAlgorithmName dupParam3, int dupParam4) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, CryptographicException
-
Reset
public void Reset() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException- Overrides:
Resetin classDeriveBytes- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
getSalt
public byte[] getSalt() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, ArrayTypeMismatchException
-
setSalt
public void setSalt(byte[] Salt) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, IndexOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getIterationCount
public int getIterationCount() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setIterationCount
public void setIterationCount(int IterationCount) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, CultureNotFoundException, PlatformNotSupportedException
-
getHashAlgorithm
public HashAlgorithmName getHashAlgorithm() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-