public class Hash extends EvidenceBase
.NET documentation at https://learn.microsoft.com/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: System.Security.Permissions, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Permissions
|
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)
Initializes a new instance by invoking the .NET constructor.
|
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. |
static Hash |
CreateMD5(byte[] md5)
Invokes the .NET member CreateMD5.
|
static Hash |
CreateMD5(JCORefOut dupParam0)
Invokes the .NET member CreateMD5.
|
static Hash |
CreateSHA1(byte[] sha1)
Invokes the .NET member CreateSHA1.
|
static Hash |
CreateSHA1(JCORefOut dupParam0)
Invokes the .NET member CreateSHA1.
|
static Hash |
CreateSHA256(byte[] sha256)
Invokes the .NET member CreateSHA256.
|
static Hash |
CreateSHA256(JCORefOut dupParam0)
Invokes the .NET member CreateSHA256.
|
byte[] |
GenerateHash(HashAlgorithm hashAlg)
Invokes the .NET member GenerateHash.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
byte[] |
getMD5()
Gets the value of the .NET property MD5.
|
void |
GetObjectData(SerializationInfo info,
StreamingContext context)
Invokes the .NET member GetObjectData.
|
byte[] |
getSHA1()
Gets the value of the .NET property SHA1.
|
byte[] |
getSHA256()
Gets the value of the .NET property SHA256.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
Clonepublic 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
assembly - the argument of type Assemblyjava.lang.Throwable - if the .NET constructor failspublic Hash(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic 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 static Hash CreateMD5(byte[] md5) throws java.lang.Throwable
md5 - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Hash CreateMD5(JCORefOut dupParam0) throws java.lang.Throwable
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Hash CreateSHA1(byte[] sha1) throws java.lang.Throwable
sha1 - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Hash CreateSHA1(JCORefOut dupParam0) throws java.lang.Throwable
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Hash CreateSHA256(byte[] sha256) throws java.lang.Throwable
sha256 - the argument of type byte[]java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Hash CreateSHA256(JCORefOut dupParam0) throws java.lang.Throwable
dupParam0 - the argument of type JCORefOutjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] GenerateHash(HashAlgorithm hashAlg) throws java.lang.Throwable
hashAlg - the argument of type HashAlgorithmjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class EvidenceBasepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class EvidenceBasepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class EvidenceBasenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class EvidenceBasepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class EvidenceBasepublic byte[] getMD5()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void GetObjectData(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
info - the argument of type SerializationInfocontext - the argument of type StreamingContextjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic byte[] getSHA1()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic byte[] getSHA256()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class EvidenceBaseinstance - the new underlying object