Package system.security.policy
Class Hash
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.policy.EvidenceBase
-
- system.security.policy.Hash
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class Hash extends EvidenceBase
The base .NET class managing System.Security.Policy.Hash, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Policy.Hash
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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: mscorlibstatic java.lang.StringclassNameQualified class name: System.Security.Policy.Hashstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Hashcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoHash, a cast assert is made to check if types are compatible.EvidenceBaseClone()static HashCreateMD5(byte[] md5)static HashCreateMD5(JCORefOut dupParam0)static HashCreateSHA1(byte[] sha1)static HashCreateSHA1(JCORefOut dupParam0)static HashCreateSHA256(byte[] sha256)static HashCreateSHA256(JCORefOut dupParam0)byte[]GenerateHash(HashAlgorithm hashAlg)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[]getMD5()voidGetObjectData(SerializationInfo info, StreamingContext context)byte[]getSHA1()byte[]getSHA256()voidsetJCOInstance(JCObject instance)
-
-
-
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.Policy.Hash- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Hash
public Hash(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
Hash
public Hash() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
Hash
public Hash(Assembly assembly) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classEvidenceBase- 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 classEvidenceBase- 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 classEvidenceBase- 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 classEvidenceBase- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classEvidenceBase
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classEvidenceBase- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static Hash cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoHash, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
Hashinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
GenerateHash
public byte[] GenerateHash(HashAlgorithm hashAlg) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, IndexOutOfRangeException, SecurityException, ApplicationException, NotSupportedException, TypeLoadException, ObjectDisposedException
-
Clone
public EvidenceBase Clone() throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
- Overrides:
Clonein classEvidenceBase- Throws:
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionArgumentNullException
-
CreateMD5
public static Hash CreateMD5(byte[] md5) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentException
-
CreateMD5
public static Hash CreateMD5(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentException
-
CreateSHA1
public static Hash CreateSHA1(byte[] sha1) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentException
-
CreateSHA1
public static Hash CreateSHA1(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentException
-
CreateSHA256
public static Hash CreateSHA256(byte[] sha256) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentException
-
CreateSHA256
public static Hash CreateSHA256(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentException
-
GetObjectData
public void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, TypeLoadException, ApplicationException, NotSupportedException, SerializationException
- Throws:
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedExceptionSerializationException
-
getMD5
public byte[] getMD5() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, TypeLoadException, ApplicationException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedException
-
getSHA1
public byte[] getSHA1() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, TypeLoadException, ApplicationException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedException
-
getSHA256
public byte[] getSHA256() throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, TypeLoadException, ApplicationException, NotSupportedException- Throws:
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedException
-
-