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