Package system.security.cryptography
Class PasswordDeriveBytes
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.DeriveBytes
-
- system.security.cryptography.PasswordDeriveBytes
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class PasswordDeriveBytes extends DeriveBytes
The base .NET class managing System.Security.Cryptography.PasswordDeriveBytes, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.PasswordDeriveBytes
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.String
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: mscorlibstatic java.lang.String
className
Qualified class name: System.Security.Cryptography.PasswordDeriveBytesstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PasswordDeriveBytes()
PasswordDeriveBytes(byte[] password, byte[] salt)
PasswordDeriveBytes(byte[] password, byte[] salt, java.lang.String hashName, int iterations)
PasswordDeriveBytes(byte[] password, byte[] salt, java.lang.String hashName, int iterations, CspParameters cspParams)
PasswordDeriveBytes(byte[] password, byte[] salt, CspParameters cspParams)
PasswordDeriveBytes(java.lang.Object instance)
Internal constructor.PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt)
PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt, java.lang.String strHashName, int iterations)
PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt, java.lang.String strHashName, int iterations, CspParameters cspParams)
PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt, CspParameters cspParams)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PasswordDeriveBytes
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPasswordDeriveBytes
, 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)
java.lang.String
getHashName()
int
getIterationCount()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typebyte[]
getSalt()
void
Reset()
void
setHashName(java.lang.String HashName)
void
setIterationCount(int IterationCount)
void
setJCOInstance(JCObject instance)
void
setSalt(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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: mscorlib- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.PasswordDeriveBytes- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PasswordDeriveBytes
public PasswordDeriveBytes(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
PasswordDeriveBytes
public PasswordDeriveBytes() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
PasswordDeriveBytes
public PasswordDeriveBytes(byte[] password, byte[] salt) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, ArgumentOutOfRangeException, CryptographicException, IndexOutOfRangeException, SecurityException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException
-
PasswordDeriveBytes
public PasswordDeriveBytes(byte[] password, byte[] salt, CspParameters cspParams) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, CryptographicException, IndexOutOfRangeException, SecurityException, ApplicationException, NotSupportedException, IOException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
FormatException
CryptographicException
IndexOutOfRangeException
SecurityException
ApplicationException
NotSupportedException
IOException
-
PasswordDeriveBytes
public PasswordDeriveBytes(byte[] password, byte[] salt, java.lang.String hashName, int iterations) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, ArgumentOutOfRangeException, CryptographicException, IndexOutOfRangeException, SecurityException, InvalidOperationException, ApplicationException, CultureNotFoundException, NotSupportedException, TypeLoadException, IOException
- Throws:
java.lang.Throwable
ArgumentNullException
FormatException
ArgumentException
ArgumentOutOfRangeException
CryptographicException
IndexOutOfRangeException
SecurityException
InvalidOperationException
ApplicationException
CultureNotFoundException
NotSupportedException
TypeLoadException
IOException
-
PasswordDeriveBytes
public PasswordDeriveBytes(byte[] password, byte[] salt, java.lang.String hashName, int iterations, CspParameters cspParams) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, OutOfMemoryException, FormatException, CryptographicException, IndexOutOfRangeException, SecurityException, NotSupportedException, ApplicationException, ObjectDisposedException, UnauthorizedAccessException, IOException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
OutOfMemoryException
FormatException
CryptographicException
IndexOutOfRangeException
SecurityException
NotSupportedException
ApplicationException
ObjectDisposedException
UnauthorizedAccessException
IOException
-
PasswordDeriveBytes
public PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, ArgumentOutOfRangeException, CryptographicException, ApplicationException, NotSupportedException, InvalidOperationException
-
PasswordDeriveBytes
public PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt, CspParameters cspParams) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, FormatException, CryptographicException, IndexOutOfRangeException, SecurityException, InvalidOperationException, ApplicationException, NotSupportedException
-
PasswordDeriveBytes
public PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt, java.lang.String strHashName, int iterations) throws java.lang.Throwable, ArgumentNullException, FormatException, ArgumentException, ArgumentOutOfRangeException, CryptographicException, IndexOutOfRangeException, SecurityException, InvalidOperationException, ApplicationException, NotSupportedException, TypeLoadException
-
PasswordDeriveBytes
public PasswordDeriveBytes(java.lang.String strPassword, byte[] rgbSalt, java.lang.String strHashName, int iterations, CspParameters cspParams) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, CryptographicException, IndexOutOfRangeException, SecurityException, ApplicationException, NotSupportedException, IOException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
FormatException
CryptographicException
IndexOutOfRangeException
SecurityException
ApplicationException
NotSupportedException
IOException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classDeriveBytes
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classDeriveBytes
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classDeriveBytes
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classDeriveBytes
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classDeriveBytes
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classDeriveBytes
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PasswordDeriveBytes cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPasswordDeriveBytes
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PasswordDeriveBytes
instance- 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, CryptographicException, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, ApplicationException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
CryptographicException
ArgumentNullException
ArgumentException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
SecurityException
ApplicationException
CultureNotFoundException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
CryptDeriveKey
public byte[] CryptDeriveKey(java.lang.String dupParam0, java.lang.String dupParam1, int dupParam2, JCORefOut dupParam3) throws java.lang.Throwable, CryptographicException, ArgumentNullException, ArgumentException, InvalidOperationException, IndexOutOfRangeException, ArgumentOutOfRangeException, NotSupportedException, SecurityException, ApplicationException, CultureNotFoundException, OutOfMemoryException, MissingMethodException, TargetInvocationException
- Throws:
java.lang.Throwable
CryptographicException
ArgumentNullException
ArgumentException
InvalidOperationException
IndexOutOfRangeException
ArgumentOutOfRangeException
NotSupportedException
SecurityException
ApplicationException
CultureNotFoundException
OutOfMemoryException
MissingMethodException
TargetInvocationException
-
GetBytes
public byte[] GetBytes(int cb) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, CryptographicUnexpectedOperationException, CryptographicException
- Overrides:
GetBytes
in classDeriveBytes
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentOutOfRangeException
ArgumentException
ObjectDisposedException
CryptographicUnexpectedOperationException
CryptographicException
-
Reset
public void Reset() throws java.lang.Throwable
- Overrides:
Reset
in classDeriveBytes
- Throws:
java.lang.Throwable
-
getSalt
public byte[] getSalt() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSalt
public void setSalt(byte[] Salt) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, CryptographicException
-
getIterationCount
public int getIterationCount() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setIterationCount
public void setIterationCount(int IterationCount) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, OutOfMemoryException, FormatException, CryptographicException
-
getHashName
public java.lang.String getHashName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setHashName
public void setHashName(java.lang.String HashName) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, CryptographicException, IndexOutOfRangeException, SecurityException, ApplicationException, ObjectDisposedException, UnauthorizedAccessException, IOException
- Throws:
java.lang.Throwable
ArgumentNullException
TypeLoadException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotSupportedException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
CryptographicException
IndexOutOfRangeException
SecurityException
ApplicationException
ObjectDisposedException
UnauthorizedAccessException
IOException
-
-