public class AuthenticationContext extends Object
Constructor and Description |
---|
AuthenticationContext() |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
address()
Gets subject network address.
|
void |
address(InetSocketAddress addr)
Sets subject network address.
|
org.apache.ignite.internal.processors.authentication.AuthorizationContext |
authorizationContext() |
AuthenticationContext |
authorizationContext(org.apache.ignite.internal.processors.authentication.AuthorizationContext newVal)
Set authorization context acquired after native Apache Ignite authentication.
|
SecurityCredentials |
credentials()
Gets security credentials.
|
void |
credentials(SecurityCredentials creds)
Sets security credentials.
|
boolean |
isClient() |
Map<String,Object> |
nodeAttributes()
Gets node attributes.
|
void |
nodeAttributes(Map<String,Object> nodeAttrs)
Sets node attributes.
|
AuthenticationContext |
setClient(boolean newVal)
Sets flag indicating if this is client node context.
|
UUID |
subjectId()
Gets subject ID.
|
void |
subjectId(UUID subjId)
Sets subject ID.
|
SecuritySubjectType |
subjectType()
Gets subject type.
|
void |
subjectType(SecuritySubjectType subjType)
Sets subject type.
|
public SecuritySubjectType subjectType()
public void subjectType(SecuritySubjectType subjType)
subjType
- Subject type.public UUID subjectId()
public void subjectId(UUID subjId)
subjId
- Subject ID.public SecurityCredentials credentials()
public void credentials(SecurityCredentials creds)
creds
- Security credentials.public InetSocketAddress address()
public void address(InetSocketAddress addr)
addr
- Subject network address.public Map<String,Object> nodeAttributes()
SecuritySubjectType.REMOTE_CLIENT
.public void nodeAttributes(Map<String,Object> nodeAttrs)
nodeAttrs
- Node attributes.public org.apache.ignite.internal.processors.authentication.AuthorizationContext authorizationContext()
null
if native
Ignite authentication is not used.public AuthenticationContext authorizationContext(org.apache.ignite.internal.processors.authentication.AuthorizationContext newVal)
public boolean isClient()
true
if this is a client node context.public AuthenticationContext setClient(boolean newVal)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019