public class ClaimsPrincipal extends NetObject
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Claims.ClaimsPrincipal
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.Claims, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Claims
|
static java.lang.String |
className
Qualified class name: System.Security.Claims.ClaimsPrincipal
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
ClaimsPrincipal()
Initializes a new instance by invoking the .NET constructor.
|
ClaimsPrincipal(BinaryReader reader)
Initializes a new instance by invoking the .NET constructor.
|
ClaimsPrincipal(IEnumerable_1 identities)
Initializes a new instance by invoking the .NET constructor.
|
ClaimsPrincipal(IIdentity identity)
Initializes a new instance by invoking the .NET constructor.
|
ClaimsPrincipal(IPrincipal principal)
Initializes a new instance by invoking the .NET constructor.
|
ClaimsPrincipal(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AddIdentities(IEnumerable_1 identities)
Invokes the .NET member AddIdentities.
|
void |
AddIdentity(ClaimsIdentity identity)
Invokes the .NET member AddIdentity.
|
static ClaimsPrincipal |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into ClaimsPrincipal, a cast assert is made to check if types are compatible. |
ClaimsPrincipal |
Clone()
Invokes the .NET member Clone.
|
IEnumerable_1 |
FindAll(Predicate_1 match)
Invokes the .NET member FindAll.
|
IEnumerable_1 |
FindAll(java.lang.String type)
Invokes the .NET member FindAll.
|
Claim |
FindFirst(Predicate_1 match)
Invokes the .NET member FindFirst.
|
Claim |
FindFirst(java.lang.String type)
Invokes the .NET member FindFirst.
|
IEnumerable_1 |
getClaims()
Gets the value of the .NET property Claims.
|
static Func_1 |
getClaimsPrincipalSelector()
Gets the value of the .NET property ClaimsPrincipalSelector.
|
static ClaimsPrincipal |
getCurrent()
Gets the value of the .NET property Current.
|
IEnumerable_1 |
getIdentities()
Gets the value of the .NET property Identities.
|
IIdentity |
getIdentity()
Gets the value of the .NET property Identity.
|
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. |
static Func_2 |
getPrimaryIdentitySelector()
Gets the value of the .NET property PrimaryIdentitySelector.
|
boolean |
HasClaim(Predicate_1 match)
Invokes the .NET member HasClaim.
|
boolean |
HasClaim(java.lang.String type,
java.lang.String value)
Invokes the .NET member HasClaim.
|
boolean |
IsInRole(java.lang.String role)
Invokes the .NET member IsInRole.
|
static void |
setClaimsPrincipalSelector(Func_1 ClaimsPrincipalSelector)
Sets the value of the .NET property ClaimsPrincipalSelector.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
static void |
setPrimaryIdentitySelector(Func_2 PrimaryIdentitySelector)
Sets the value of the .NET property PrimaryIdentitySelector.
|
void |
WriteTo(BinaryWriter writer)
Invokes the .NET member WriteTo.
|
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public ClaimsPrincipal()
throws java.lang.Throwable
java.lang.Throwable - if the .NET constructor failspublic ClaimsPrincipal(BinaryReader reader) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IOException, FormatException
reader - the argument of type BinaryReaderjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itIOException - if the .NET member raises itFormatException - if the .NET member raises itpublic ClaimsPrincipal(IEnumerable_1 identities) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
identities - the argument of type IEnumerable_1java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ClaimsPrincipal(IIdentity identity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
identity - the argument of type IIdentityjava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ClaimsPrincipal(IPrincipal principal) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
principal - the argument of type IPrincipaljava.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic ClaimsPrincipal(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 void AddIdentities(IEnumerable_1 identities) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
identities - the argument of type IEnumerable_1java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic void AddIdentity(ClaimsIdentity identity) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
identity - the argument of type ClaimsIdentityjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic static ClaimsPrincipal cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into ClaimsPrincipal, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedClaimsPrincipal instancejava.lang.Throwable - in case of error during cast operationpublic ClaimsPrincipal Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic IEnumerable_1 FindAll(Predicate_1 match) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
match - the argument of type Predicate_1java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic IEnumerable_1 FindAll(java.lang.String type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
type - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic Claim FindFirst(Predicate_1 match) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
match - the argument of type Predicate_1java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic Claim FindFirst(java.lang.String type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, CultureNotFoundException, IndexOutOfRangeException, OutOfMemoryException, ExternalException
type - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itpublic IEnumerable_1 getClaims() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static Func_1 getClaimsPrincipalSelector() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static ClaimsPrincipal getCurrent() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, TypeLoadException, ArgumentException, NotSupportedException, ArgumentOutOfRangeException, InvalidOperationException
java.lang.Throwable - if the call fails in the bridge or in the CLRPlatformNotSupportedException - if the .NET member raises itArgumentNullException - if the .NET member raises itTypeLoadException - if the .NET member raises itArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itInvalidOperationException - if the .NET member raises itpublic IEnumerable_1 getIdentities() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IIdentity getIdentity() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class NetObjectpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class NetObjectpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class NetObjectnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class NetObjectpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class NetObjectpublic static Func_2 getPrimaryIdentitySelector() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic boolean HasClaim(Predicate_1 match) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException
match - the argument of type Predicate_1java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itpublic boolean HasClaim(java.lang.String type,
java.lang.String value)
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
NotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
ArgumentNullException,
CultureNotFoundException,
IndexOutOfRangeException,
OutOfMemoryException,
ExternalException
type - the argument of type java.lang.Stringvalue - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itArgumentNullException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itpublic boolean IsInRole(java.lang.String role)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
CultureNotFoundException,
PlatformNotSupportedException,
IndexOutOfRangeException,
OutOfMemoryException,
ExternalException
role - the argument of type java.lang.Stringjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itpublic static void setClaimsPrincipalSelector(Func_1 ClaimsPrincipalSelector) throws java.lang.Throwable
ClaimsPrincipalSelector - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class NetObjectinstance - the new underlying objectpublic static void setPrimaryIdentitySelector(Func_2 PrimaryIdentitySelector) throws java.lang.Throwable
PrimaryIdentitySelector - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void WriteTo(BinaryWriter writer) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ArrayTypeMismatchException, OutOfMemoryException, ExternalException, CultureNotFoundException, IndexOutOfRangeException
writer - the argument of type BinaryWriterjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itExternalException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises it