public class InvocationContext extends Object implements Serializable
The data stored includes authenticated user's identity and the selected locale.
Constructor and Description |
---|
InvocationContext(pl.edu.icm.unity.types.basic.IdentityTaV tlsIdentity,
pl.edu.icm.unity.types.authn.AuthenticationRealm realm,
List<AuthenticationFlow> endpointFlows) |
Modifier and Type | Method and Description |
---|---|
static InvocationContext |
getCurrent() |
String |
getCurrentURLUsed() |
List<AuthenticationFlow> |
getEndpointFlows() |
Locale |
getLocale() |
LoginSession |
getLoginSession() |
pl.edu.icm.unity.types.authn.AuthenticationRealm |
getRealm() |
pl.edu.icm.unity.types.basic.IdentityTaV |
getTlsIdentity() |
static boolean |
hasCurrent() |
static String |
safeGetRealm() |
static void |
setCurrent(InvocationContext context) |
void |
setCurrentURLUsed(String currentURLUsed) |
void |
setLocale(Locale locale) |
void |
setLoginSession(LoginSession loginSession) |
void |
setTlsIdentity(pl.edu.icm.unity.types.basic.IdentityTaV tlsIdentity)
Sets a TLS authenticated identity.
|
public InvocationContext(pl.edu.icm.unity.types.basic.IdentityTaV tlsIdentity, pl.edu.icm.unity.types.authn.AuthenticationRealm realm, List<AuthenticationFlow> endpointFlows)
tlsIdentity
- TLS client-authenticated identity (of X500 type) or null if there is no TLS
client connection context or it is not client authenticated.public static void setCurrent(InvocationContext context)
public static InvocationContext getCurrent() throws pl.edu.icm.unity.exceptions.InternalException
pl.edu.icm.unity.exceptions.InternalException
public static boolean hasCurrent()
public static String safeGetRealm()
public pl.edu.icm.unity.types.authn.AuthenticationRealm getRealm()
public LoginSession getLoginSession()
public void setLoginSession(LoginSession loginSession)
public Locale getLocale()
public void setLocale(Locale locale)
public pl.edu.icm.unity.types.basic.IdentityTaV getTlsIdentity()
public void setTlsIdentity(pl.edu.icm.unity.types.basic.IdentityTaV tlsIdentity)
tlsIdentity
- public List<AuthenticationFlow> getEndpointFlows()
public String getCurrentURLUsed()
public void setCurrentURLUsed(String currentURLUsed)
Copyright © 2018 Unity. All rights reserved.