Package system.security.cryptography
Class RandomNumberGenerator
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.cryptography.RandomNumberGenerator
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
- Direct Known Subclasses:
RNGCryptoServiceProvider
public class RandomNumberGenerator extends NetObject implements java.lang.AutoCloseable
The base .NET class managing System.Security.Cryptography.RandomNumberGenerator, System.Security.Cryptography, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Cryptography.RandomNumberGenerator
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, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Security.Cryptographystatic java.lang.StringclassNameQualified class name: System.Security.Cryptography.RandomNumberGeneratorstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description RandomNumberGenerator()RandomNumberGenerator(java.lang.Object instance)Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RandomNumberGeneratorcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoRandomNumberGenerator, a cast assert is made to check if types are compatible.voidclose()static RandomNumberGeneratorCreate()static RandomNumberGeneratorCreate(java.lang.String rngName)voidDispose()voidGetBytes(byte[] data)voidGetBytes(byte[] data, int offset, int count)static byte[]GetBytes(int count)voidGetBytes(JCORefOut dupParam0)voidGetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2)static java.lang.StringGetHexString(int stringLength, boolean lowercase)static intGetInt32(int toExclusive)static intGetInt32(int fromInclusive, int toExclusive)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 TypevoidGetNonZeroBytes(byte[] data)voidGetNonZeroBytes(JCORefOut dupParam0)voidsetJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Cryptography, Version=9.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- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Cryptography.RandomNumberGenerator- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- 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 classNetObject- 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 classNetObject- 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 classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static RandomNumberGenerator cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoRandomNumberGenerator, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
RandomNumberGeneratorinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GetBytes
public static byte[] GetBytes(int count) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException
-
GetInt32
public static int GetInt32(int fromInclusive, int toExclusive) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException, IndexOutOfRangeException, FormatException
-
GetInt32
public static int GetInt32(int toExclusive) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException
-
Create
public static RandomNumberGenerator Create() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
Create
public static RandomNumberGenerator Create(java.lang.String rngName) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidOperationException, RankException, ArrayTypeMismatchException, TypeLoadException, FileLoadException, FileNotFoundException, CryptographicException, NullReferenceException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionTypeLoadExceptionFileLoadExceptionFileNotFoundExceptionCryptographicExceptionNullReferenceException
-
GetHexString
public static java.lang.String GetHexString(int stringLength, boolean lowercase) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, IndexOutOfRangeException
-
Dispose
public void Dispose() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullException
-
GetBytes
public void GetBytes(byte[] data, int offset, int count) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
GetBytes
public void GetBytes(JCORefOut dupParam0, int dupParam1, int dupParam2) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException
-
GetBytes
public void GetBytes(byte[] data) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
GetBytes
public void GetBytes(JCORefOut dupParam0) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
GetNonZeroBytes
public void GetNonZeroBytes(byte[] data) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
GetNonZeroBytes
public void GetNonZeroBytes(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, NotImplementedException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-