public interface NamingProvider extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
default void |
close()
Close the provider.
|
static NamingProvider |
getCurrentNamingProvider()
Get the current naming provider being used for the current deserialization operation.
|
org.wildfly.security.auth.client.PeerIdentity |
getPeerIdentityForNaming()
Get the peer identity to use for context operations.
|
URI |
getProviderUri()
Get the provider URI of this provider.
|
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.
|
URI getProviderUri()
null
)org.wildfly.security.auth.client.PeerIdentity getPeerIdentityForNaming() throws NamingException
null
)NamingException
- if connecting, authenticating, or re-authenticating the peer failedstatic 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 Exception
default void close() throws NamingException
InitialContext
is closed. This method
should be idempotent.close
in interface AutoCloseable
NamingException
- if an error occurred while closing this providerCopyright © 2017 JBoss by Red Hat. All rights reserved.