Package system.security.claims
Class ClaimsIdentity
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.security.claims.ClaimsIdentity
-
- All Implemented Interfaces:
IJCOBridgeReflected
- Direct Known Subclasses:
GenericIdentity
,WindowsIdentity
public class ClaimsIdentity extends NetObject
The base .NET class managing System.Security.Claims.ClaimsIdentity, System.Security.Claims, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Security.Claims.ClaimsIdentity
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.String
assemblyFullName
Fully assembly qualified name: System.Security.Claims, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Security.Claimsstatic java.lang.String
className
Qualified class name: System.Security.Claims.ClaimsIdentitystatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description ClaimsIdentity()
ClaimsIdentity(java.lang.Object instance)
Internal constructor.ClaimsIdentity(java.lang.String authenticationType)
ClaimsIdentity(java.lang.String authenticationType, java.lang.String nameType, java.lang.String roleType)
ClaimsIdentity(BinaryReader reader)
ClaimsIdentity(IIdentity identity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
AddClaim(Claim claim)
static ClaimsIdentity
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoClaimsIdentity
, a cast assert is made to check if types are compatible.ClaimsIdentity
Clone()
Claim
FindFirst(java.lang.String type)
ClaimsIdentity
getActor()
java.lang.String
getAuthenticationType()
NetObject
getBootstrapContext()
boolean
getIsAuthenticated()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typejava.lang.String
getLabel()
java.lang.String
getName()
java.lang.String
getNameClaimType()
java.lang.String
getRoleClaimType()
boolean
HasClaim(java.lang.String type, java.lang.String value)
void
RemoveClaim(Claim claim)
void
setActor(ClaimsIdentity Actor)
void
setBootstrapContext(NetObject BootstrapContext)
void
setJCOInstance(JCObject instance)
void
setLabel(java.lang.String Label)
boolean
TryRemoveClaim(Claim claim)
void
WriteTo(BinaryWriter writer)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Security.Claims, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Security.Claims- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Security.Claims.ClaimsIdentity- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClaimsIdentity
public ClaimsIdentity(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
ClaimsIdentity
public ClaimsIdentity() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
ClaimsIdentity
public ClaimsIdentity(BinaryReader reader) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IOException, FormatException, OutOfMemoryException
-
ClaimsIdentity
public ClaimsIdentity(IIdentity identity) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
ClaimsIdentity
public ClaimsIdentity(java.lang.String authenticationType, java.lang.String nameType, java.lang.String roleType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
ClaimsIdentity
public ClaimsIdentity(java.lang.String authenticationType) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static ClaimsIdentity cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoClaimsIdentity
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
ClaimsIdentity
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
HasClaim
public boolean HasClaim(java.lang.String type, java.lang.String value) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
-
TryRemoveClaim
public boolean TryRemoveClaim(Claim claim) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
-
FindFirst
public Claim FindFirst(java.lang.String type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, NullReferenceException, OutOfMemoryException, ExternalException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
CultureNotFoundException
NullReferenceException
OutOfMemoryException
ExternalException
-
Clone
public ClaimsIdentity Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException
-
AddClaim
public void AddClaim(Claim claim) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException
-
RemoveClaim
public void RemoveClaim(Claim claim) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, InvalidOperationException
-
WriteTo
public void WriteTo(BinaryWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException, ExternalException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
CultureNotFoundException
PlatformNotSupportedException
NullReferenceException
IndexOutOfRangeException
OutOfMemoryException
ExternalException
ArrayTypeMismatchException
-
getIsAuthenticated
public boolean getIsAuthenticated() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getBootstrapContext
public NetObject getBootstrapContext() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBootstrapContext
public void setBootstrapContext(NetObject BootstrapContext) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getActor
public ClaimsIdentity getActor() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setActor
public void setActor(ClaimsIdentity Actor) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getAuthenticationType
public java.lang.String getAuthenticationType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getLabel
public java.lang.String getLabel() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setLabel
public void setLabel(java.lang.String Label) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getName
public java.lang.String getName() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, CultureNotFoundException, PlatformNotSupportedException, NullReferenceException, IndexOutOfRangeException, OutOfMemoryException, ExternalException
-
getNameClaimType
public java.lang.String getNameClaimType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getRoleClaimType
public java.lang.String getRoleClaimType() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-