@Contract(threading=IMMUTABLE) public final class CurrentWindowsCredentials extends Object implements Credentials, Serializable, Principal
EXPERIMENTAL
| Modifier and Type | Field and Description |
|---|---|
static CurrentWindowsCredentials |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static String |
getCurrentUsername()
Get the SAM-compatible username of the currently logged-on user.
|
String |
getName() |
String |
getPassword()
Returns an empty password
|
Principal |
getUserPrincipal() |
int |
hashCode() |
String |
toString() |
public static final CurrentWindowsCredentials INSTANCE
public static String getCurrentUsername()
public Principal getUserPrincipal()
getUserPrincipal in interface Credentialspublic int hashCode()
public boolean equals(Object o)
public String toString()
public String getPassword()
getPassword in interface CredentialsCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.