public class WindowsIdentity extends ClaimsIdentity implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Security.Principal.WindowsIdentity
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.Principal.Windows, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Security.Principal.Windows
|
static java.lang.String |
className
Qualified class name: System.Security.Principal.WindowsIdentity
|
static org.mases.jcobridge.JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
WindowsIdentity() |
WindowsIdentity(java.lang.Object instance)
Internal constructor.
|
WindowsIdentity(SerializationInfo info,
StreamingContext context) |
WindowsIdentity(java.lang.String sUserPrincipalName) |
| Modifier and Type | Method and Description |
|---|---|
static WindowsIdentity |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into WindowsIdentity, a cast assert is made to check if types are compatible. |
ClaimsIdentity |
Clone() |
void |
close() |
void |
Dispose() |
SafeAccessTokenHandle |
getAccessToken() |
static WindowsIdentity |
GetAnonymous() |
static WindowsIdentity |
GetCurrent() |
static WindowsIdentity |
GetCurrent(boolean ifImpersonating) |
static WindowsIdentity |
GetCurrent(TokenAccessLevels desiredAccess) |
IEnumerable_1 |
getDeviceClaims() |
IdentityReferenceCollection |
getGroups() |
TokenImpersonationLevel |
getImpersonationLevel() |
boolean |
getIsAnonymous() |
boolean |
getIsGuest() |
boolean |
getIsSystem() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
org.mases.jcobridge.JCType |
getJCOType()
Returns the instantiated class Type
|
SecurityIdentifier |
getOwner() |
SecurityIdentifier |
getUser() |
IEnumerable_1 |
getUserClaims() |
static void |
RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle,
Action action) |
static Task |
RunImpersonatedAsync(SafeAccessTokenHandle safeAccessTokenHandle,
Func_1 func) |
void |
setJCOInstance(org.mases.jcobridge.JCObject instance) |
AddClaim, AddClaims, FindAll, FindAll, FindFirst, FindFirst, getActor, getAuthenticationType, getBootstrapContext, getClaims, getIsAuthenticated, getLabel, getName, getNameClaimType, getRoleClaimType, HasClaim, HasClaim, RemoveClaim, setActor, setBootstrapContext, setLabel, TryRemoveClaim, WriteTopublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public static org.mases.jcobridge.JCType classType
JCTypepublic WindowsIdentity()
throws java.lang.Throwable
java.lang.Throwablepublic WindowsIdentity(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic WindowsIdentity(SerializationInfo info, StreamingContext context) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
public WindowsIdentity(java.lang.String sUserPrincipalName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
MissingMethodException,
TargetInvocationException,
FormatException,
SecurityException,
OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionSecurityExceptionOutOfMemoryExceptionpublic static WindowsIdentity cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into WindowsIdentity, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedWindowsIdentity instancejava.lang.Throwable - in case of error during cast operationpublic ClaimsIdentity Clone() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, PlatformNotSupportedException, ObjectDisposedException, MissingMethodException, TargetInvocationException, SecurityException
Clone in class ClaimsIdentityjava.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionPlatformNotSupportedExceptionObjectDisposedExceptionMissingMethodExceptionTargetInvocationExceptionSecurityExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ObjectDisposedException,
ArgumentNullException
java.lang.ThrowableObjectDisposedExceptionArgumentNullExceptionpublic SafeAccessTokenHandle getAccessToken() throws java.lang.Throwable
java.lang.Throwablepublic static WindowsIdentity GetAnonymous() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
public static WindowsIdentity GetCurrent() throws java.lang.Throwable, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, FormatException, SecurityException, ObjectDisposedException
java.lang.ThrowableMissingMethodExceptionTargetInvocationExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionObjectDisposedExceptionpublic static WindowsIdentity GetCurrent(boolean ifImpersonating) throws java.lang.Throwable, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, FormatException, SecurityException, ObjectDisposedException
java.lang.ThrowableMissingMethodExceptionTargetInvocationExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionObjectDisposedExceptionpublic static WindowsIdentity GetCurrent(TokenAccessLevels desiredAccess) throws java.lang.Throwable, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, FormatException, SecurityException, ObjectDisposedException
java.lang.ThrowableMissingMethodExceptionTargetInvocationExceptionPlatformNotSupportedExceptionArgumentNullExceptionArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionNotSupportedExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionObjectDisposedExceptionpublic IEnumerable_1 getDeviceClaims() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, SecurityException, InvalidOperationException, AccessViolationException, ArrayTypeMismatchException, FormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionOutOfMemoryExceptionSecurityExceptionInvalidOperationExceptionAccessViolationExceptionArrayTypeMismatchExceptionFormatExceptionpublic IdentityReferenceCollection getGroups() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ArgumentException, IndexOutOfRangeException, InvalidOperationException, FormatException, SecurityException, CultureNotFoundException, ArrayTypeMismatchException, AccessViolationException, RankException, InvalidCastException, NullReferenceException, NotSupportedException
java.lang.ThrowableArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOutOfMemoryExceptionArgumentExceptionIndexOutOfRangeExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionCultureNotFoundExceptionArrayTypeMismatchExceptionAccessViolationExceptionRankExceptionInvalidCastExceptionNullReferenceExceptionNotSupportedExceptionpublic TokenImpersonationLevel getImpersonationLevel() throws java.lang.Throwable, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, FormatException, InvalidOperationException, SecurityException, CultureNotFoundException
public boolean getIsAnonymous()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
OutOfMemoryException,
IndexOutOfRangeException,
FormatException,
SecurityException,
AccessViolationException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSecurityExceptionAccessViolationExceptionpublic boolean getIsGuest()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
OutOfMemoryException,
SecurityException,
MissingMethodException,
TargetInvocationException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionpublic boolean getIsSystem()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
OutOfMemoryException,
IndexOutOfRangeException,
FormatException,
SecurityException,
AccessViolationException
java.lang.ThrowableArgumentExceptionArgumentNullExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSecurityExceptionAccessViolationExceptionpublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ClaimsIdentityString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ClaimsIdentityString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ClaimsIdentityObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ClaimsIdentityString representing the name used to allocated the object
in CLR contextpublic org.mases.jcobridge.JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ClaimsIdentityJCType representing the CLR Type of the instantiated Classpublic SecurityIdentifier getOwner() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, FormatException, SecurityException, NotSupportedException, CultureNotFoundException, AccessViolationException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionNotSupportedExceptionCultureNotFoundExceptionAccessViolationExceptionpublic SecurityIdentifier getUser() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, FormatException, SecurityException, NotSupportedException, CultureNotFoundException, AccessViolationException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionNotSupportedExceptionCultureNotFoundExceptionAccessViolationExceptionpublic IEnumerable_1 getUserClaims() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, ObjectDisposedException, OutOfMemoryException, SecurityException, InvalidOperationException, AccessViolationException, ArrayTypeMismatchException, FormatException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionObjectDisposedExceptionOutOfMemoryExceptionSecurityExceptionInvalidOperationExceptionAccessViolationExceptionArrayTypeMismatchExceptionFormatExceptionpublic static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, MissingMethodException, TargetInvocationException, SecurityException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionMissingMethodExceptionTargetInvocationExceptionSecurityExceptionpublic static Task RunImpersonatedAsync(SafeAccessTokenHandle safeAccessTokenHandle, Func_1 func) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, MissingMethodException, TargetInvocationException, PlatformNotSupportedException, SecurityException
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
setJCOInstance in class ClaimsIdentity