public class JpsUtil
extends java.lang.Object
Constructor and Description |
---|
JpsUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getApplicationName()
Deprecated.
Deprecated since 11.1.1.1.0
Internal: Applications should not use this method.
|
static java.lang.String |
getCurrentUserUniqueID()
Returns the unique username of the currently logged on user
or the string '[null]' if not running in a security context.
|
static oracle.security.idm.IdentityStore |
getDefaultIdentityStore()
Deprecated.
Deprecated since 12.1.2.0.0
Get default idenity store based on JPS service context available via
app-level or system-level jps-config.xml
|
static javax.security.auth.login.LoginContext |
getLoginContext(javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler cb)
Internal: Applications should not use this method.
|
static java.lang.String |
getUserUniqueIdentifier(java.security.Principal principal)
Get unique identifier for the given principal.
|
static java.lang.String |
getUserUniqueIdentifier(java.lang.String userName)
Internal: Applications should not use this method.
Get unique identifier for the given user.
|
public static java.lang.String getApplicationName()
public static javax.security.auth.login.LoginContext getLoginContext(javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler cb)
public static final java.lang.String getCurrentUserUniqueID()
getUserUniqueIdentifier(java.security.Principal)
public static java.lang.String getUserUniqueIdentifier(java.security.Principal principal)
principal
- string value of principaljava.lang.RuntimeException
- if the underlying Id Store
configuration ended up with some error and user attributes could
not be retrieved.public static java.lang.String getUserUniqueIdentifier(java.lang.String userName)
userName
- string value of user namejava.lang.RuntimeException
- if the underlying Id Store
configuration ended up with some error and user attributes could
not be retrieved.public static oracle.security.idm.IdentityStore getDefaultIdentityStore() throws oracle.security.jps.JpsException
oracle.security.jps.JpsException