public final class ConnectionPeerIdentityContext extends PeerIdentityContext
Modifier and Type | Method and Description |
---|---|
ConnectionPeerIdentity |
authenticate(AuthenticationConfiguration configuration)
Perform an authentication.
|
IoFuture<ConnectionPeerIdentity> |
authenticateAsync(AuthenticationConfiguration configuration) |
ConnectionPeerIdentity |
getAnonymousIdentity()
Get the anonymous identity for this context.
|
ConnectionPeerIdentity |
getCurrentIdentity()
Get the current identity.
|
constructIdentity, owns
public IoFuture<ConnectionPeerIdentity> authenticateAsync(AuthenticationConfiguration configuration)
public ConnectionPeerIdentity authenticate(AuthenticationConfiguration configuration) throws AuthenticationException
authenticate
in class PeerIdentityContext
configuration
- the authentication configuration to use (must not be null
)null
)AuthenticationException
- if the authentication attempt failedpublic ConnectionPeerIdentity getAnonymousIdentity()
null
)public ConnectionPeerIdentity getCurrentIdentity()
getCurrentIdentity
in class PeerIdentityContext
null
)Copyright © 2019 JBoss by Red Hat. All rights reserved.