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.
|
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 Certificate[] certificates()
public AuthenticationContext certificates(Certificate[] certs)
certs
- Client SSL certificates.this
for chaining.public boolean isClient()
true
if this is a client node context.public AuthenticationContext setClient(boolean newVal)
newVal
- Whether current authentication context relates to client node connection.this
for chaining.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023