public interface NamingProvider extends AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static class |
NamingProvider.Location
A provider location.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
close()
Close the provider.
|
default org.wildfly.security.auth.client.AuthenticationConfiguration |
getAuthenticationConfiguration()
Deprecated.
Use
getLocations() instead. |
static NamingProvider |
getCurrentNamingProvider()
Get the current naming provider being used for the current deserialization operation.
|
List<NamingProvider.Location> |
getLocations()
Get the location(s) of this provider.
|
default org.wildfly.security.auth.client.PeerIdentity |
getPeerIdentityForNaming()
Get a peer identity to use for context operations.
|
org.wildfly.security.auth.client.PeerIdentity |
getPeerIdentityForNaming(NamingProvider.Location location)
Get the peer identity to use for context operations for the specified location.
|
default URI |
getProviderUri()
Deprecated.
Use
getLocations() instead. |
default SSLContext |
getSSLContext()
Deprecated.
Use
getLocations() instead. |
default <T,U,R> R |
performAction(BiFunction<T,U,R> function,
T arg1,
U arg2)
Perform an action under the current naming provider.
|
default <T,U,R,E extends Exception> |
performExceptionAction(org.wildfly.common.function.ExceptionBiFunction<T,U,R,E> function,
T arg1,
U arg2)
Perform an action under the current naming provider.
|
List<NamingProvider.Location> getLocations()
null or empty)@Deprecated default URI getProviderUri()
getLocations() instead.null)default org.wildfly.security.auth.client.PeerIdentity getPeerIdentityForNaming()
throws NamingException
null)NamingException - if connecting, authenticating, or re-authenticating the peer failedorg.wildfly.security.auth.client.PeerIdentity getPeerIdentityForNaming(NamingProvider.Location location) throws NamingException
getLocations().location - a location from getLocations() (must not be null)null)NamingException - if connecting, authenticating, or re-authenticating the peer failed@Deprecated default org.wildfly.security.auth.client.AuthenticationConfiguration getAuthenticationConfiguration()
getLocations() instead.null if no particular configuration is
established.null for none@Deprecated default SSLContext getSSLContext()
getLocations() instead.null if no particular SSL context is established.null for nonestatic NamingProvider getCurrentNamingProvider()
null if no provider-related deserialization is occurringdefault <T,U,R> R performAction(BiFunction<T,U,R> function, T arg1, U arg2)
T - the first argument typeU - the second argument typeR - the function return typefunction - the function to apply (must not be null)arg1 - the first argumentarg2 - the second argumentdefault <T,U,R,E extends Exception> R performExceptionAction(org.wildfly.common.function.ExceptionBiFunction<T,U,R,E> function, T arg1, U arg2) throws E extends Exception
T - the first argument typeU - the second argument typeR - the function return typeE - the function exception typefunction - the function to apply (must not be null)arg1 - the first argumentarg2 - the second argumentE - if the function throws an exception of the given typeE extends Exceptiondefault void close()
throws NamingException
InitialContext is closed. This method
should be idempotent.close in interface AutoCloseableNamingException - if an error occurred while closing this providerCopyright © 2017 JBoss by Red Hat. All rights reserved.