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: System.Security.Principal.Windows, Version=9.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 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) |
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() |
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, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException
public WindowsIdentity(java.lang.String sUserPrincipalName)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
NotSupportedException,
InvalidOperationException,
ObjectDisposedException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
MissingMethodException,
TargetInvocationException,
FormatException,
SecurityException,
OutOfMemoryException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionNotSupportedExceptionInvalidOperationExceptionObjectDisposedExceptionIndexOutOfRangeExceptionRankExceptionArrayTypeMismatchExceptionMissingMethodExceptionTargetInvocationExceptionFormatExceptionSecurityExceptionOutOfMemoryExceptionpublic 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 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,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
OutOfMemoryException,
IndexOutOfRangeException,
FormatException,
SecurityException,
AccessViolationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSecurityExceptionAccessViolationExceptionpublic boolean getIsGuest()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
OutOfMemoryException,
SecurityException,
MissingMethodException,
TargetInvocationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionOutOfMemoryExceptionSecurityExceptionMissingMethodExceptionTargetInvocationExceptionpublic boolean getIsSystem()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
PlatformNotSupportedException,
ObjectDisposedException,
InvalidOperationException,
RankException,
ArrayTypeMismatchException,
NotSupportedException,
OutOfMemoryException,
IndexOutOfRangeException,
FormatException,
SecurityException,
AccessViolationException
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionOutOfMemoryExceptionIndexOutOfRangeExceptionFormatExceptionSecurityExceptionAccessViolationExceptionpublic 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, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, FormatException, SecurityException, CultureNotFoundException, NotSupportedException, AccessViolationException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionCultureNotFoundExceptionNotSupportedExceptionAccessViolationExceptionpublic SecurityIdentifier getUser() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, ObjectDisposedException, OutOfMemoryException, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, FormatException, SecurityException, CultureNotFoundException, NotSupportedException, AccessViolationException
java.lang.ThrowableArgumentNullExceptionPlatformNotSupportedExceptionObjectDisposedExceptionOutOfMemoryExceptionArgumentOutOfRangeExceptionArgumentExceptionIndexOutOfRangeExceptionArrayTypeMismatchExceptionInvalidOperationExceptionFormatExceptionSecurityExceptionCultureNotFoundExceptionNotSupportedExceptionAccessViolationExceptionpublic 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 void setJCOInstance(JCObject instance)
setJCOInstance in class ClaimsIdentity