Class CommandCredentialSource
- java.lang.Object
-
- org.wildfly.security.credential.source.CommandCredentialSource
-
- All Implemented Interfaces:
CredentialSource
@Deprecated public final class CommandCredentialSource extends Object implements CredentialSource
Deprecated.UseCommandCredentialSource
insteadA credential source which acquires a credential from the command line.- Author:
- David M. Lloyd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CommandCredentialSource.Builder
Deprecated.A builder for a command credential source.
-
Field Summary
Fields Modifier and Type Field Description private Function<ProcessBuilder,ProcessBuilder>
builderProcessor
Deprecated.private AccessControlContext
context
Deprecated.private static File
NULL_FILE
Deprecated.private Charset
outputCharset
Deprecated.private PasswordFactory
passwordFactory
Deprecated.-
Fields inherited from interface org.wildfly.security.credential.source.CredentialSource
NONE
-
-
Constructor Summary
Constructors Constructor Description CommandCredentialSource(CommandCredentialSource.Builder builder)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CommandCredentialSource.Builder
builder()
Deprecated.Construct a new builder instance.<C extends Credential>
CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
Deprecated.Acquire a credential of the given type.SupportLevel
getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)
Deprecated.Determine whether a given credential is definitely obtainable, possibly obtainable, or definitely not obtainable.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.credential.source.CredentialSource
applyToCredential, applyToCredential, applyToCredential, getCredential, getCredential, getCredentialAcquireSupport, getCredentialAcquireSupport, with, without, without, without
-
-
-
-
Field Detail
-
NULL_FILE
private static final File NULL_FILE
Deprecated.
-
builderProcessor
private final Function<ProcessBuilder,ProcessBuilder> builderProcessor
Deprecated.
-
passwordFactory
private final PasswordFactory passwordFactory
Deprecated.
-
context
private final AccessControlContext context
Deprecated.
-
outputCharset
private final Charset outputCharset
Deprecated.
-
-
Constructor Detail
-
CommandCredentialSource
CommandCredentialSource(CommandCredentialSource.Builder builder) throws GeneralSecurityException
Deprecated.- Throws:
GeneralSecurityException
-
-
Method Detail
-
getCredentialAcquireSupport
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException
Deprecated.Description copied from interface:CredentialSource
Determine whether a given credential is definitely obtainable, possibly obtainable, or definitely not obtainable.- Specified by:
getCredentialAcquireSupport
in interfaceCredentialSource
- Parameters:
credentialType
- the credential type class (must not benull
)algorithmName
- the algorithm name, ornull
if any algorithm is acceptable or the credential type does not support algorithm namesparameterSpec
- the algorithm parameters to match, ornull
if any parameters are acceptable or the credential type does not support algorithm parameters- Returns:
- the level of support for this credential type (not
null
) - Throws:
IOException
- if the credential source failed to determine the support level
-
getCredential
public <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException
Deprecated.Description copied from interface:CredentialSource
Acquire a credential of the given type. The credential type is defined by itsClass
and an optionalalgorithmName
. If the algorithm name is not given, then the query is performed for any algorithm of the given type.- Specified by:
getCredential
in interfaceCredentialSource
- Type Parameters:
C
- the credential type- Parameters:
credentialType
- the credential type class (must not benull
)algorithmName
- the algorithm name, ornull
if any algorithm is acceptable or the credential type does not support algorithm namesparameterSpec
- the algorithm parameters to match, ornull
if any parameters are acceptable or the credential type does not support algorithm parameters- Returns:
- the credential, or
null
if the principal has no credential of that type - Throws:
IOException
- if the realm is not able to handle requests for any reason
-
builder
public static CommandCredentialSource.Builder builder()
Deprecated.Construct a new builder instance.- Returns:
- the new builder instance
-
-