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.
|
List<InetSocketAddress> |
allAddresses()
Gets All subject network addresses.
|
void |
allAddresses(List<InetSocketAddress> allAddr)
Sets All subject network addresses.
|
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.
|
Certificate[] |
certificates() |
AuthenticationContext |
certificates(Certificate[] certs)
Set client SSL certificates.
|
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,?> 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,?> 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 Certificate[] certificates()
public AuthenticationContext certificates(Certificate[] certs)
public boolean isClient()
true
if this is a client node context.public AuthenticationContext setClient(boolean newVal)
public List<InetSocketAddress> allAddresses()
public void allAddresses(List<InetSocketAddress> allAddr)
allAddr
- List of All subject network addresses.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024