Package | Description |
---|---|
org.wildfly.security.auth.client |
Elytron Client enable remote clients to authenticate using Elytron.
|
Modifier and Type | Field and Description |
---|---|
static AuthenticationConfiguration |
AuthenticationConfiguration.EMPTY
Deprecated.
to obtain empty configuration use
empty() method instead |
Modifier and Type | Method and Description |
---|---|
AuthenticationConfiguration |
AuthenticationConfiguration.captureAuthorizationIdentity()
Create a new configuration which is the same as this configuration, but which attempts to authorize to the
principal from the current identity from the configured security domain.
|
static AuthenticationConfiguration |
AuthenticationConfiguration.empty()
An empty configuration which can be used as the basis for any configuration.
|
AuthenticationConfiguration |
AuthenticationContextConfigurationClient.getAuthenticationConfiguration(URI uri,
AuthenticationContext authenticationContext)
Get the authentication configuration which matches the given URI, or
EMPTY if there is none. |
AuthenticationConfiguration |
AuthenticationContextConfigurationClient.getAuthenticationConfiguration(URI uri,
AuthenticationContext authenticationContext,
int protocolDefaultPort)
Get the authentication configuration which matches the given URI, or
EMPTY if there is none, setting
a default protocol port. |
AuthenticationConfiguration |
AuthenticationContextConfigurationClient.getAuthenticationConfiguration(URI uri,
AuthenticationContext authenticationContext,
int protocolDefaultPort,
String abstractType,
String abstractTypeAuthority)
Get the authentication configuration which matches the given URI and type, or
EMPTY if there is none, setting
a default protocol port. |
AuthenticationConfiguration |
AuthenticationContextConfigurationClient.getAuthenticationConfigurationNoOverrides(URI uri,
AuthenticationContext authenticationContext,
String abstractType,
String abstractTypeAuthority)
Get the authentication configuration which matches the given URI and type, or
EMPTY if there is none. |
AuthenticationConfiguration |
AuthenticationConfiguration.rewriteUser(NameRewriter rewriter)
Create a new configuration which is the same as this configuration, but rewrites the user name using the given
name rewriter.
|
AuthenticationConfiguration |
AuthenticationConfiguration.rewriteUserOnlyWith(NameRewriter rewriter)
Create a new configuration which is the same as this configuration, but rewrites the user name using only
the given name rewriter.
|
AuthenticationConfiguration |
AuthenticationConfiguration.setSaslMechanismSelector(org.wildfly.security.sasl.SaslMechanismSelector saslMechanismSelector)
Set the SASL mechanism selector for this authentication configuration.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useAnonymous()
Create a new configuration which is the same as this configuration, but which uses an anonymous login.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useAuthorizationName(String name)
Create a new configuration which is the same as this configuration, but which attempts to authorize to the given
name after authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useAuthorizationPrincipal(Principal principal)
Create a new configuration which is the same as this configuration, but which attempts to authorize to the given
principal after authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useBearerTokenCredential(BearerTokenCredential credential)
Create a new configuration which is the same as this configuration, but which uses the given
BearerTokenCredential to authenticate. |
AuthenticationConfiguration |
AuthenticationConfiguration.useCallbackHandler(CallbackHandler callbackHandler)
Create a new configuration which is the same as this configuration, but which uses the given callback handler
to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useCallbackHandler(CallbackHandler callbackHandler,
Set<CallbackKind> callbackKinds)
Create a new configuration which is the same as this configuration, but which uses the given callback handler
to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useCertificateCredential(PrivateKey privateKey,
X509Certificate... certificateChain)
Create a new configuration which is the same as this configuration, but which uses the given private key and X.509
certificate chain to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useCertificateCredential(X509CertificateChainPrivateCredential credential)
Create a new configuration which is the same as this configuration, but which uses the given private key and X.509
certificate chain to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useChoice(BiPredicate<Class<? extends ChoiceCallback>,String> matchPredicate,
String choice)
Create a new configuration which is the same as this configuration, but which uses the given choice if the given
predicate evaluates to
true . |
AuthenticationConfiguration |
AuthenticationConfiguration.useCredential(Credential credential)
Create a new configuration which is the same as this configuration, but which uses the given credential to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useCredentialCallbackHandler(CallbackHandler callbackHandler)
Create a new configuration which is the same as this configuration, but which uses the given callback handler to
acquire a password with which to authenticate, when a password-based authentication algorithm is in use.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useCredentials(CredentialSource credentials)
Create a new configuration which is the same as this configuration, but which uses the given identity
credentials to acquire the credential required for authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useCredentialStoreEntry(CredentialStore credentialStore,
String alias)
Create a new configuration which is the same as this configuration, but uses credentials found at the given
alias and credential store.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useDefaultProviders()
Use the default provider discovery behaviour of combining service loader discovered providers with the system default
security providers when locating security implementations.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useForwardedAuthenticationCredentials(SecurityDomain securityDomain)
Create a new configuration which is the same as this configuration, but which forwards the authentication
credentials from the current identity of the given security domain.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useForwardedAuthenticationIdentity(SecurityDomain securityDomain)
Create a new configuration which is the same as this configuration, but which forwards the authentication name
from the current identity of the given security domain.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useForwardedAuthorizationIdentity(SecurityDomain securityDomain)
Create a new configuration which is the same as this configuration, but which forwards the authorization name
from the current identity of the given security domain.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useForwardedIdentity(SecurityDomain securityDomain)
Create a new configuration which is the same as this configuration, but which forwards the authentication name
and credentials from the current identity of the given security domain.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useGSSCredential(GSSCredential credential)
Create a new configuration which is the same as this configuration, but which uses the given GSS-API credential to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useHost(String hostName)
Deprecated.
This configuration is not supported by most providers and will be removed in a future release.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useKerberosSecurityFactory(SecurityFactory<Credential> kerberosSecurityFactory)
Deprecated.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useKeyManagerCredential(X509KeyManager keyManager)
Create a new configuration which is the same as this configuration, but which uses the given key manager
to acquire the credential required for authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useKeyStoreCredential(KeyStore.Entry keyStoreEntry)
Create a new configuration which is the same as this configuration, but which uses the given key store and alias
to acquire the credential required for authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useKeyStoreCredential(KeyStore keyStore,
String alias)
Create a new configuration which is the same as this configuration, but which uses the given key store and alias
to acquire the credential required for authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useKeyStoreCredential(KeyStore keyStore,
String alias,
KeyStore.ProtectionParameter protectionParameter)
Create a new configuration which is the same as this configuration, but which uses the given key store and alias
to acquire the credential required for authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useLocalKerberosCredential(Oid[] mechanismOids)
Deprecated.
can be ommited - kerberos based authentication mechanism obtains credential himself
|
AuthenticationConfiguration |
AuthenticationConfiguration.useMechanismProperties(Map<String,?> mechanismProperties)
Deprecated.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useMechanismProperties(Map<String,?> mechanismProperties,
boolean exclusive)
Deprecated.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useName(String name)
Create a new configuration which is the same as this configuration, but which uses the given login name to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useParameterSpec(AlgorithmParameterSpec parameterSpec)
Create a new configuration which is the same as this configuration, but which uses the given parameter specification.
|
AuthenticationConfiguration |
AuthenticationConfiguration.usePassword(char[] password)
Create a new configuration which is the same as this configuration, but which uses the given password to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.usePassword(Password password)
Create a new configuration which is the same as this configuration, but which uses the given password to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.usePassword(String password)
Create a new configuration which is the same as this configuration, but which uses the given password to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.usePort(int port)
Deprecated.
This configuration is not supported by most providers and will be removed in a future release.
|
AuthenticationConfiguration |
AuthenticationConfiguration.usePrincipal(NamePrincipal principal)
Create a new configuration which is the same as this configuration, but which uses the given principal to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.usePrincipal(Principal principal)
Create a new configuration which is the same as this configuration, but which uses the given principal to authenticate.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useProtocol(String protocol)
Deprecated.
This configuration is not supported by most providers and will be removed in a future release.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useProviders(Supplier<Provider[]> providerSupplier)
Use the given security provider supplier to locate security implementations.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useProvidersFromClassLoader(ClassLoader classLoader)
Use security providers from the given class loader.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useRealm(String realm)
Create a new configuration which is the same as this configuration, but uses the given realm for authentication.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useSaslClientFactory(SaslClientFactory saslClientFactory)
Use a pre-existing
SaslClientFactory instead of discovery. |
AuthenticationConfiguration |
AuthenticationConfiguration.useSaslClientFactory(Supplier<SaslClientFactory> saslClientFactory)
Use the given sasl client factory supplier to obtain the
SaslClientFactory to use. |
AuthenticationConfiguration |
AuthenticationConfiguration.useSaslClientFactoryFromProviders()
Use provider based discovery to load available
SaslClientFactory implementations. |
AuthenticationConfiguration |
AuthenticationConfiguration.useSaslMechanismProperties(Map<String,?> mechanismProperties)
Create a new configuration which is the same as this configuration, but which sets the properties that will be passed to
the
SaslClientFactory when the mechanism is created. |
AuthenticationConfiguration |
AuthenticationConfiguration.useSaslMechanismProperties(Map<String,?> mechanismProperties,
boolean exclusive)
Create a new configuration which is the same as this configuration, but which sets the properties that will be passed to
the
SaslClientFactory when the mechanism is created. |
AuthenticationConfiguration |
AuthenticationConfiguration.useSaslProtocol(String saslProtocol)
Create a new configuration which is the same as this configuration, but which specifies a different protocol to be passed to the authentication mechanisms.
|
AuthenticationConfiguration |
AuthenticationConfiguration.useTrustManager(X509TrustManager trustManager)
Create a new configuration which is the same as this configuration, but which uses the given trust manager
for trust verification.
|
AuthenticationConfiguration |
AuthenticationConfiguration.with(AuthenticationConfiguration other)
Create a new configuration which is the same as this configuration, but which adds or replaces every item in the
other configuration with that item, overwriting any corresponding such item in this configuration. |
AuthenticationConfiguration |
AuthenticationConfiguration.withCapturedAccessControlContext()
Create a new configuration which is the same as this configuration, but which captures the caller's access
control context to be used in authentication decisions.
|
Modifier and Type | Method and Description |
---|---|
abstract PeerIdentity |
PeerIdentityContext.authenticate(AuthenticationConfiguration authenticationConfiguration)
Authenticate a new peer identity.
|
Socket |
AuthenticationContextConfigurationClient.connect(URI uri,
AuthenticationConfiguration configuration,
int protocolDefaultPort)
Deprecated.
Use
Inet.getResolved(java.net.URI, int) with Socket.Socket(InetAddress, int) instead. |
SaslClient |
AuthenticationContextConfigurationClient.createSaslClient(URI uri,
AuthenticationConfiguration configuration,
Collection<String> offeredMechanisms)
Create a SASL client using the given URI and configuration from the given SASL client factory.
|
SaslClient |
AuthenticationContextConfigurationClient.createSaslClient(URI uri,
AuthenticationConfiguration configuration,
Collection<String> offeredMechanisms,
UnaryOperator<SaslClientFactory> factoryOperator)
Create a SASL client using the given URI and configuration from the given SASL client factory.
|
SaslClient |
AuthenticationContextConfigurationClient.createSaslClient(URI uri,
AuthenticationConfiguration configuration,
Collection<String> offeredMechanisms,
UnaryOperator<SaslClientFactory> factoryOperator,
SSLSession sslSession)
Create a SASL client using the given URI and configuration from the given SASL client factory.
|
boolean |
AuthenticationConfiguration.equals(AuthenticationConfiguration other)
Determine whether this configuration is equal to another object.
|
Principal |
AuthenticationContextConfigurationClient.getAuthorizationPrincipal(AuthenticationConfiguration configuration)
Get the authorization principal to use for the given configuration.
|
CallbackHandler |
AuthenticationContextConfigurationClient.getCallbackHandler(AuthenticationConfiguration configuration)
Get an authentication callback handler for the given configuration.
|
InetSocketAddress |
AuthenticationContextConfigurationClient.getDestinationInetSocketAddress(AuthenticationConfiguration configuration)
Deprecated.
This configuration is not supported by most providers and will be removed in a future release.
|
InetSocketAddress |
AuthenticationContextConfigurationClient.getDestinationInetSocketAddress(URI uri,
AuthenticationConfiguration configuration,
int protocolDefaultPort)
Deprecated.
Use
Inet.getResolved(java.net.URI, int) instead. |
Principal |
AuthenticationContextConfigurationClient.getPrincipal(AuthenticationConfiguration configuration)
Get the authentication principal to use for the given configuration.
|
Supplier<Provider[]> |
AuthenticationContextConfigurationClient.getProviderSupplier(AuthenticationConfiguration configuration)
|
String |
AuthenticationContextConfigurationClient.getRealHost(AuthenticationConfiguration configuration)
Deprecated.
This configuration is not supported by most providers and will be removed in a future release.
|
String |
AuthenticationContextConfigurationClient.getRealHost(URI uri,
AuthenticationConfiguration configuration)
Deprecated.
Use
URI.getHost() instead. |
int |
AuthenticationContextConfigurationClient.getRealPort(AuthenticationConfiguration configuration)
Deprecated.
This configuration is not supported by most providers and will be removed in a future release.
|
int |
AuthenticationContextConfigurationClient.getRealPort(URI uri,
AuthenticationConfiguration configuration)
Deprecated.
Use
URI.getPort() instead. |
String |
AuthenticationContextConfigurationClient.getRealProtocol(AuthenticationConfiguration configuration)
Deprecated.
This configuration is not supported by most providers and will be removed in a future release.
|
String |
AuthenticationContextConfigurationClient.getRealProtocol(URI uri,
AuthenticationConfiguration configuration)
Deprecated.
Use
URI.getScheme() instead. |
String |
AuthenticationContextConfigurationClient.getSaslProtocol(AuthenticationConfiguration configuration)
Get the actual sasl protocol to use for the given configuration.
|
AuthenticationContext |
AuthenticationContext.replacing(int idx,
MatchRule rule,
AuthenticationConfiguration configuration)
Get a new authentication context which is the same as this one, but which replaces the rule and configuration at the given
index with the given rule and configuration.
|
AuthenticationConfiguration |
AuthenticationConfiguration.with(AuthenticationConfiguration other)
Create a new configuration which is the same as this configuration, but which adds or replaces every item in the
other configuration with that item, overwriting any corresponding such item in this configuration. |
AuthenticationContext |
AuthenticationContext.with(int idx,
MatchRule rule,
AuthenticationConfiguration configuration)
Get a new authentication context which is the same as this one, but which includes the given rule and configuration
inserted at the position of its list indicated by the
idx parameter. |
AuthenticationContext |
AuthenticationContext.with(MatchRule rule,
AuthenticationConfiguration configuration)
Get a new authentication context which is the same as this one, but which includes the given rule and configuration at
the end of its list.
|
Copyright © 2020 JBoss by Red Hat. All rights reserved.