public class WindowsIdentity extends ClaimsIdentity implements ISerializable, IDeserializationCallback, java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/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: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
static java.lang.String |
assemblyShortName
Assembly name: mscorlib
|
static java.lang.String |
className
Qualified class name: System.Security.Principal.WindowsIdentity
|
static 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) |
WindowsIdentity(java.lang.String sUserPrincipalName,
java.lang.String type) |
| 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) |
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
|
JCType |
getJCOType()
Returns the instantiated class Type
|
SecurityIdentifier |
getOwner() |
SecurityIdentifier |
getUser() |
WindowsImpersonationContext |
Impersonate() |
static void |
RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle,
Action action) |
void |
setJCOInstance(JCObject instance) |
AddClaim, FindFirst, getActor, getAuthenticationType, getBootstrapContext, getIsAuthenticated, getLabel, getName, getNameClaimType, getRoleClaimType, HasClaim, RemoveClaim, setActor, setBootstrapContext, setLabel, TryRemoveClaim, WriteToEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializableOnDeserialization, ToIDeserializationCallbackpublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public 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, InvalidOperationException, FormatException, SerializationException, ArgumentException, ArgumentOutOfRangeException, SecurityException
public WindowsIdentity(java.lang.String sUserPrincipalName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
KeyNotFoundException,
OutOfMemoryException,
ObjectDisposedException,
AbandonedMutexException,
UnauthorizedAccessException,
FormatException,
PrivilegeNotHeldException,
SecurityException
public WindowsIdentity(java.lang.String sUserPrincipalName,
java.lang.String type)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
ArgumentOutOfRangeException,
KeyNotFoundException,
OutOfMemoryException,
ObjectDisposedException,
AbandonedMutexException,
UnauthorizedAccessException,
FormatException,
PrivilegeNotHeldException,
SecurityException
public 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, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, KeyNotFoundException, OutOfMemoryException, FormatException, SecurityException
Clone in class ClaimsIdentityjava.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionKeyNotFoundExceptionOutOfMemoryExceptionFormatExceptionSecurityExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable
java.lang.Throwablepublic SafeAccessTokenHandle getAccessToken() throws java.lang.Throwable
java.lang.Throwablepublic static WindowsIdentity GetAnonymous() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, KeyNotFoundException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionKeyNotFoundExceptionpublic static WindowsIdentity GetCurrent() throws java.lang.Throwable, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, SecurityException, ArgumentException, InvalidOperationException, KeyNotFoundException
public static WindowsIdentity GetCurrent(boolean ifImpersonating) throws java.lang.Throwable, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, SecurityException, ArgumentException, InvalidOperationException, KeyNotFoundException
public static WindowsIdentity GetCurrent(TokenAccessLevels desiredAccess) throws java.lang.Throwable, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, SecurityException, ArgumentException, InvalidOperationException, KeyNotFoundException
public IdentityReferenceCollection getGroups() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, SecurityException, AccessViolationException
public TokenImpersonationLevel getImpersonationLevel() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionSecurityExceptionpublic boolean getIsAnonymous()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
ArgumentOutOfRangeException,
FormatException,
OutOfMemoryException,
SecurityException,
AccessViolationException
public boolean getIsGuest()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
ArgumentOutOfRangeException,
FormatException,
OutOfMemoryException,
SecurityException
public boolean getIsSystem()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
ArgumentOutOfRangeException,
FormatException,
OutOfMemoryException,
SecurityException,
AccessViolationException
public java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface IDeserializationCallbackgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class ClaimsIdentityString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface IDeserializationCallbackgetJCOClassName in interface ISerializablegetJCOClassName in class ClaimsIdentityString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface IDeserializationCallbackgetJCOInstance in interface ISerializablegetJCOInstance in class ClaimsIdentityObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface IDeserializationCallbackgetJCOObjectName in interface ISerializablegetJCOObjectName in class ClaimsIdentityString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface IDeserializationCallbackgetJCOType in interface ISerializablegetJCOType in class ClaimsIdentityJCType representing the CLR Type of the instantiated Classpublic SecurityIdentifier getOwner() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, SecurityException, AccessViolationException
public SecurityIdentifier getUser() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, OutOfMemoryException, ArgumentOutOfRangeException, SecurityException, AccessViolationException
public WindowsImpersonationContext Impersonate() throws java.lang.Throwable, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentNullException, SecurityException, ArgumentException, NullReferenceException
public static void RunImpersonated(SafeAccessTokenHandle safeAccessTokenHandle, Action action) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, KeyNotFoundException, OutOfMemoryException, SecurityException, NullReferenceException
public void setJCOInstance(JCObject instance)
setJCOInstance in class ClaimsIdentity