Package system.web.security
Class RolePrincipal
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.claims.ClaimsPrincipal
-
- system.web.security.RolePrincipal
-
- All Implemented Interfaces:
IJCOBridgeReflected,ISerializable
public class RolePrincipal extends ClaimsPrincipal implements ISerializable
The base .NET class managing System.Web.Security.RolePrincipal, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Web.Security.RolePrincipal
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.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.Webstatic java.lang.StringclassNameQualified class name: System.Web.Security.RolePrincipalstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description RolePrincipal()RolePrincipal(java.lang.Object instance)Internal constructor.RolePrincipal(java.lang.String providerName, IIdentity identity)RolePrincipal(java.lang.String providerName, IIdentity identity, java.lang.String encryptedTicket)RolePrincipal(IIdentity identity)RolePrincipal(IIdentity identity, java.lang.String encryptedTicket)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RolePrincipalcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoRolePrincipal, a cast assert is made to check if types are compatible.booleangetCachedListChanged()java.lang.StringgetCookiePath()booleangetExpired()DateTimegetExpireDate()booleangetIsRoleListCached()DateTimegetIssueDate()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 Typejava.lang.StringgetProviderName()java.lang.String[]GetRoles()intgetVersion()booleanIsInRole(java.lang.String role)voidSetDirty()voidsetJCOInstance(JCObject instance)java.lang.StringToEncryptedTicket()-
Methods inherited from class system.security.claims.ClaimsPrincipal
AddIdentity, Clone, FindFirst, getCurrent, getIdentity, HasClaim, WriteTo
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.runtime.serialization.ISerializable
GetObjectData
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Web- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Web.Security.RolePrincipal- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RolePrincipal
public RolePrincipal(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
RolePrincipal
public RolePrincipal() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
RolePrincipal
public RolePrincipal(IIdentity identity) throws java.lang.Throwable, ArgumentNullException, ArgumentOutOfRangeException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, HttpException, ConfigurationErrorsException, NotSupportedException, ConfigurationException, ProviderException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentOutOfRangeExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionHttpExceptionConfigurationErrorsExceptionNotSupportedExceptionConfigurationExceptionProviderException
-
RolePrincipal
public RolePrincipal(IIdentity identity, java.lang.String encryptedTicket) throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, NotImplementedException, ObjectDisposedException, InvalidOperationException, HttpException, ArgumentOutOfRangeException, ConfigurationErrorsException, NotSupportedException, ConfigurationException, ProviderException, ThreadAbortException, FormatException, CryptographicException, PlatformNotSupportedException, SerializationException
- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionMissingManifestResourceExceptionNotImplementedExceptionObjectDisposedExceptionInvalidOperationExceptionHttpExceptionArgumentOutOfRangeExceptionConfigurationErrorsExceptionNotSupportedExceptionConfigurationExceptionProviderExceptionThreadAbortExceptionFormatExceptionCryptographicExceptionPlatformNotSupportedExceptionSerializationException
-
RolePrincipal
public RolePrincipal(java.lang.String providerName, IIdentity identity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, HttpException, ConfigurationErrorsException, ConfigurationException, ProviderException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionHttpExceptionConfigurationErrorsExceptionConfigurationExceptionProviderException
-
RolePrincipal
public RolePrincipal(java.lang.String providerName, IIdentity identity, java.lang.String encryptedTicket) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, HttpException, ConfigurationErrorsException, ConfigurationException, ProviderException, ThreadAbortException, FormatException, CryptographicException, PlatformNotSupportedException, SerializationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionHttpExceptionConfigurationErrorsExceptionConfigurationExceptionProviderExceptionThreadAbortExceptionFormatExceptionCryptographicExceptionPlatformNotSupportedExceptionSerializationException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Specified by:
getJCOAssemblyNamein interfaceISerializable- Overrides:
getJCOAssemblyNamein classClaimsPrincipal- 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- Specified by:
getJCOClassNamein interfaceISerializable- Overrides:
getJCOClassNamein classClaimsPrincipal- 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- Specified by:
getJCOObjectNamein interfaceISerializable- Overrides:
getJCOObjectNamein classClaimsPrincipal- 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- Specified by:
getJCOInstancein interfaceISerializable- Overrides:
getJCOInstancein classClaimsPrincipal- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classClaimsPrincipal
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Specified by:
getJCOTypein interfaceISerializable- Overrides:
getJCOTypein classClaimsPrincipal- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static RolePrincipal cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoRolePrincipal, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
RolePrincipalinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
IsInRole
public boolean IsInRole(java.lang.String role) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, ProviderException, HttpException, ConfigurationErrorsException, ConfigurationException- Overrides:
IsInRolein classClaimsPrincipal- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionProviderExceptionHttpExceptionConfigurationErrorsExceptionConfigurationException
-
ToEncryptedTicket
public java.lang.String ToEncryptedTicket() throws java.lang.Throwable, ArgumentException, SecurityException, ArgumentNullException, NotImplementedException, NotSupportedException, InvalidOperationException, MemberAccessException, TargetException, TargetParameterCountException, ObjectDisposedException, ArgumentOutOfRangeException, HttpException, ProviderException, ConfigurationErrorsException, TypeLoadException, MissingMethodException, TargetInvocationException, SerializationException, ThreadAbortException, OutOfMemoryException, PlatformNotSupportedException, Win32Exception, CryptographicException- Throws:
java.lang.ThrowableArgumentExceptionSecurityExceptionArgumentNullExceptionNotImplementedExceptionNotSupportedExceptionInvalidOperationExceptionMemberAccessExceptionTargetExceptionTargetParameterCountExceptionObjectDisposedExceptionArgumentOutOfRangeExceptionHttpExceptionProviderExceptionConfigurationErrorsExceptionTypeLoadExceptionMissingMethodExceptionTargetInvocationExceptionSerializationExceptionThreadAbortExceptionOutOfMemoryExceptionPlatformNotSupportedExceptionWin32ExceptionCryptographicException
-
GetRoles
public java.lang.String[] GetRoles() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, ProviderException, HttpException, ConfigurationErrorsException, ConfigurationException- Throws:
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionProviderExceptionHttpExceptionConfigurationErrorsExceptionConfigurationException
-
SetDirty
public void SetDirty() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCachedListChanged
public boolean getCachedListChanged() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getExpired
public boolean getExpired() throws java.lang.Throwable, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentOutOfRangeException
-
getIsRoleListCached
public boolean getIsRoleListCached() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getVersion
public int getVersion() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getExpireDate
public DateTime getExpireDate() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionNotSupportedException
-
getIssueDate
public DateTime getIssueDate() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, InvalidTimeZoneException, NotSupportedException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionInvalidTimeZoneExceptionNotSupportedException
-
getCookiePath
public java.lang.String getCookiePath() throws java.lang.Throwable, ArgumentException, SecurityException, ArgumentNullException, TargetParameterCountException, NotSupportedException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, HttpException, ArgumentOutOfRangeException, ProviderException, ConfigurationErrorsException, FormatException, ConfigurationException, TypeLoadException- Throws:
java.lang.ThrowableArgumentExceptionSecurityExceptionArgumentNullExceptionTargetParameterCountExceptionNotSupportedExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionInvalidOperationExceptionHttpExceptionArgumentOutOfRangeExceptionProviderExceptionConfigurationErrorsExceptionFormatExceptionConfigurationExceptionTypeLoadException
-
getProviderName
public java.lang.String getProviderName() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-