public class Hash extends EvidenceBase
.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
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Security.Policy.Hash
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Hash() |
Hash(Assembly assembly) |
Hash(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Hash |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Hash, a cast assert is made to check if types are compatible. |
EvidenceBase |
Clone() |
static Hash |
CreateMD5(byte[] md5) |
static Hash |
CreateMD5(JCORefOut dupParam0) |
static Hash |
CreateSHA1(byte[] sha1) |
static Hash |
CreateSHA1(JCORefOut dupParam0) |
static Hash |
CreateSHA256(byte[] sha256) |
static Hash |
CreateSHA256(JCORefOut dupParam0) |
byte[] |
GenerateHash(HashAlgorithm hashAlg) |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
byte[] |
getMD5() |
void |
GetObjectData(SerializationInfo info,
StreamingContext context) |
byte[] |
getSHA1() |
byte[] |
getSHA256() |
void |
setJCOInstance(JCObject instance) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Hash()
throws java.lang.Throwable
java.lang.Throwablepublic Hash(Assembly assembly) throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException
java.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionpublic Hash(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic static Hash cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Hash, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedHash instancejava.lang.Throwable - in case of error during cast operationpublic EvidenceBase Clone() throws java.lang.Throwable, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException
Clone in class EvidenceBasejava.lang.ThrowableInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionArgumentNullExceptionpublic static Hash CreateMD5(byte[] md5) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic static Hash CreateMD5(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic static Hash CreateSHA1(byte[] sha1) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic static Hash CreateSHA1(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic static Hash CreateSHA256(byte[] sha256) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic static Hash CreateSHA256(JCORefOut dupParam0) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, NotSupportedException, ArgumentOutOfRangeException, ArgumentException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionNotSupportedExceptionArgumentOutOfRangeExceptionArgumentExceptionpublic byte[] GenerateHash(HashAlgorithm hashAlg) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, IndexOutOfRangeException, SecurityException, ApplicationException, NotSupportedException, TypeLoadException, ObjectDisposedException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class EvidenceBaseString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class EvidenceBaseString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class EvidenceBaseObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class EvidenceBaseString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class EvidenceBaseJCType representing the CLR Type of the instantiated Classpublic byte[] getMD5()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException,
ArgumentException,
ObjectDisposedException,
IndexOutOfRangeException,
SecurityException,
UnauthorizedAccessException,
IOException,
TypeLoadException,
ApplicationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedExceptionpublic void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, SecurityException, UnauthorizedAccessException, IOException, TypeLoadException, ApplicationException, NotSupportedException, SerializationException
java.lang.ThrowableInvalidOperationExceptionArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedExceptionSerializationExceptionpublic byte[] getSHA1()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException,
ArgumentException,
ObjectDisposedException,
IndexOutOfRangeException,
SecurityException,
UnauthorizedAccessException,
IOException,
TypeLoadException,
ApplicationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedExceptionpublic byte[] getSHA256()
throws java.lang.Throwable,
ArgumentNullException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException,
ArgumentException,
ObjectDisposedException,
IndexOutOfRangeException,
SecurityException,
UnauthorizedAccessException,
IOException,
TypeLoadException,
ApplicationException,
NotSupportedException
java.lang.ThrowableArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionArgumentExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionUnauthorizedAccessExceptionIOExceptionTypeLoadExceptionApplicationExceptionNotSupportedExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class EvidenceBase