Package system.identitymodel.tokens
Class X509AsymmetricSecurityKey
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.identitymodel.tokens.SecurityKey
-
- system.identitymodel.tokens.AsymmetricSecurityKey
-
- system.identitymodel.tokens.X509AsymmetricSecurityKey
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class X509AsymmetricSecurityKey extends AsymmetricSecurityKey
The base .NET class managing System.IdentityModel.Tokens.X509AsymmetricSecurityKey, System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IdentityModel.Tokens.X509AsymmetricSecurityKey
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.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.IdentityModelstatic java.lang.StringclassNameQualified class name: System.IdentityModel.Tokens.X509AsymmetricSecurityKeystatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description X509AsymmetricSecurityKey()X509AsymmetricSecurityKey(java.lang.Object instance)Internal constructor.X509AsymmetricSecurityKey(X509Certificate2 certificate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static X509AsymmetricSecurityKeycast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoX509AsymmetricSecurityKey, a cast assert is made to check if types are compatible.byte[]DecryptKey(java.lang.String algorithm, byte[] keyData)byte[]DecryptKey(java.lang.String dupParam0, JCORefOut dupParam1)byte[]EncryptKey(java.lang.String algorithm, byte[] keyData)byte[]EncryptKey(java.lang.String dupParam0, JCORefOut dupParam1)AsymmetricAlgorithmGetAsymmetricAlgorithm(java.lang.String algorithm, boolean privateKey)HashAlgorithmGetHashAlgorithmForSignature(java.lang.String algorithm)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 TypeAsymmetricSignatureDeformatterGetSignatureDeformatter(java.lang.String algorithm)AsymmetricSignatureFormatterGetSignatureFormatter(java.lang.String algorithm)booleanHasPrivateKey()booleanIsAsymmetricAlgorithm(java.lang.String algorithm)booleanIsSupportedAlgorithm(java.lang.String algorithm)booleanIsSymmetricAlgorithm(java.lang.String algorithm)voidsetJCOInstance(JCObject instance)-
Methods inherited from class system.identitymodel.tokens.SecurityKey
getKeySize
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IdentityModel- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IdentityModel.Tokens.X509AsymmetricSecurityKey- See Also:
- Constant Field Values
-
-
Constructor Detail
-
X509AsymmetricSecurityKey
public X509AsymmetricSecurityKey(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
X509AsymmetricSecurityKey
public X509AsymmetricSecurityKey() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
X509AsymmetricSecurityKey
public X509AsymmetricSecurityKey(X509Certificate2 certificate) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classAsymmetricSecurityKey- 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 classAsymmetricSecurityKey- 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 classAsymmetricSecurityKey- 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 classAsymmetricSecurityKey- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classAsymmetricSecurityKey
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classAsymmetricSecurityKey- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static X509AsymmetricSecurityKey cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoX509AsymmetricSecurityKey, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
X509AsymmetricSecurityKeyinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
HasPrivateKey
public boolean HasPrivateKey() throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, UnauthorizedAccessException, PrivilegeNotHeldException, ThreadAbortException, MulticastNotSupportedException, ConfigurationErrorsException, OverflowException- Overrides:
HasPrivateKeyin classAsymmetricSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionCryptographicExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionThreadAbortExceptionMulticastNotSupportedExceptionConfigurationErrorsExceptionOverflowException
-
IsAsymmetricAlgorithm
public boolean IsAsymmetricAlgorithm(java.lang.String algorithm) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, OutOfMemoryException, SecurityException, ApplicationException, IOException, PlatformNotSupportedException, CryptographicException, KeyNotFoundException- Overrides:
IsAsymmetricAlgorithmin classSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionOutOfMemoryExceptionSecurityExceptionApplicationExceptionIOExceptionPlatformNotSupportedExceptionCryptographicExceptionKeyNotFoundException
-
IsSupportedAlgorithm
public boolean IsSupportedAlgorithm(java.lang.String algorithm) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, OutOfMemoryException, SecurityException, ApplicationException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, CryptographicException, KeyNotFoundException, PrivilegeNotHeldException, ThreadAbortException- Overrides:
IsSupportedAlgorithmin classSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionOutOfMemoryExceptionSecurityExceptionApplicationExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionCryptographicExceptionKeyNotFoundExceptionPrivilegeNotHeldExceptionThreadAbortException
-
IsSymmetricAlgorithm
public boolean IsSymmetricAlgorithm(java.lang.String algorithm) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, FormatException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, OverflowException, OutOfMemoryException, SecurityException, ApplicationException, CultureNotFoundException, NotSupportedException, TypeLoadException, IOException, PlatformNotSupportedException, CryptographicException, NotImplementedException, KeyNotFoundException- Overrides:
IsSymmetricAlgorithmin classSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionFormatExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionOverflowExceptionOutOfMemoryExceptionSecurityExceptionApplicationExceptionCultureNotFoundExceptionNotSupportedExceptionTypeLoadExceptionIOExceptionPlatformNotSupportedExceptionCryptographicExceptionNotImplementedExceptionKeyNotFoundException
-
DecryptKey
public byte[] DecryptKey(java.lang.String algorithm, byte[] keyData) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, UnauthorizedAccessException, PrivilegeNotHeldException, ThreadAbortException, MulticastNotSupportedException, ConfigurationErrorsException, OverflowException- Overrides:
DecryptKeyin classSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionCryptographicExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionThreadAbortExceptionMulticastNotSupportedExceptionConfigurationErrorsExceptionOverflowException
-
DecryptKey
public byte[] DecryptKey(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, UnauthorizedAccessException, PrivilegeNotHeldException, ThreadAbortException, MulticastNotSupportedException, ConfigurationErrorsException, OverflowException- Overrides:
DecryptKeyin classSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionCryptographicExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionThreadAbortExceptionMulticastNotSupportedExceptionConfigurationErrorsExceptionOverflowException
-
EncryptKey
public byte[] EncryptKey(java.lang.String algorithm, byte[] keyData) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, CryptographicException, OutOfMemoryException, UnauthorizedAccessException, PrivilegeNotHeldException, NotSupportedException, ThreadAbortException, MissingMethodException, MulticastNotSupportedException, ConfigurationErrorsException, OverflowException, SecurityException- Overrides:
EncryptKeyin classSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionCryptographicExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionNotSupportedExceptionThreadAbortExceptionMissingMethodExceptionMulticastNotSupportedExceptionConfigurationErrorsExceptionOverflowExceptionSecurityException
-
EncryptKey
public byte[] EncryptKey(java.lang.String dupParam0, JCORefOut dupParam1) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, FormatException, CryptographicException, OutOfMemoryException, UnauthorizedAccessException, PrivilegeNotHeldException, NotSupportedException, ThreadAbortException, MissingMethodException, MulticastNotSupportedException, ConfigurationErrorsException, OverflowException, SecurityException- Overrides:
EncryptKeyin classSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionFormatExceptionCryptographicExceptionOutOfMemoryExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionNotSupportedExceptionThreadAbortExceptionMissingMethodExceptionMulticastNotSupportedExceptionConfigurationErrorsExceptionOverflowExceptionSecurityException
-
GetAsymmetricAlgorithm
public AsymmetricAlgorithm GetAsymmetricAlgorithm(java.lang.String algorithm, boolean privateKey) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, UnauthorizedAccessException, PrivilegeNotHeldException, ThreadAbortException, MulticastNotSupportedException, ConfigurationErrorsException, OverflowException
- Overrides:
GetAsymmetricAlgorithmin classAsymmetricSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionCryptographicExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionThreadAbortExceptionMulticastNotSupportedExceptionConfigurationErrorsExceptionOverflowException
-
GetSignatureDeformatter
public AsymmetricSignatureDeformatter GetSignatureDeformatter(java.lang.String algorithm) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, OutOfMemoryException, SecurityException, ApplicationException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, CryptographicException, KeyNotFoundException, PrivilegeNotHeldException, ThreadAbortException
- Overrides:
GetSignatureDeformatterin classAsymmetricSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionOutOfMemoryExceptionSecurityExceptionApplicationExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionCryptographicExceptionKeyNotFoundExceptionPrivilegeNotHeldExceptionThreadAbortException
-
GetSignatureFormatter
public AsymmetricSignatureFormatter GetSignatureFormatter(java.lang.String algorithm) throws java.lang.Throwable, ArgumentException, ArgumentNullException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, FormatException, CryptographicException, OutOfMemoryException, SecurityException, MissingMethodException, TargetInvocationException, NotSupportedException, UnauthorizedAccessException, PrivilegeNotHeldException, ThreadAbortException, MulticastNotSupportedException, ConfigurationErrorsException, OverflowException, ApplicationException, TypeLoadException, IOException, PlatformNotSupportedException, KeyNotFoundException
- Overrides:
GetSignatureFormatterin classAsymmetricSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionFormatExceptionCryptographicExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionUnauthorizedAccessExceptionPrivilegeNotHeldExceptionThreadAbortExceptionMulticastNotSupportedExceptionConfigurationErrorsExceptionOverflowExceptionApplicationExceptionTypeLoadExceptionIOExceptionPlatformNotSupportedExceptionKeyNotFoundException
-
GetHashAlgorithmForSignature
public HashAlgorithm GetHashAlgorithmForSignature(java.lang.String algorithm) throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, FormatException, OverflowException, OutOfMemoryException, SecurityException, ApplicationException, UnauthorizedAccessException, IOException, PlatformNotSupportedException, CryptographicException, KeyNotFoundException
- Overrides:
GetHashAlgorithmForSignaturein classAsymmetricSecurityKey- Throws:
java.lang.ThrowableArgumentExceptionIndexOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionOverflowExceptionOutOfMemoryExceptionSecurityExceptionApplicationExceptionUnauthorizedAccessExceptionIOExceptionPlatformNotSupportedExceptionCryptographicExceptionKeyNotFoundException
-
-