Class FactoryCredentialSource
- java.lang.Object
- 
- org.wildfly.security.credential.source.FactoryCredentialSource
 
- 
- All Implemented Interfaces:
- CredentialSource
 
 @Deprecated public class FactoryCredentialSource extends Object implements CredentialSource Deprecated.UseFactoryCredentialSourceinsteadA credential source which is backed by a credential security factory.- Author:
- Martin Mazanek
 
- 
- 
Field Summary- 
Fields inherited from interface org.wildfly.security.credential.source.CredentialSourceNONE
 
- 
 - 
Constructor SummaryConstructors Constructor Description FactoryCredentialSource(SecurityFactory<? extends Credential> credentialFactory)Deprecated.Construct a new instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <C extends Credential>
 CgetCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)Deprecated.Acquire a credential of the given type.SupportLevelgetCredentialAcquireSupport(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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.wildfly.security.credential.source.CredentialSourceapplyToCredential, applyToCredential, applyToCredential, getCredential, getCredential, getCredentialAcquireSupport, getCredentialAcquireSupport, with, without, without, without
 
- 
 
- 
- 
- 
Constructor Detail- 
FactoryCredentialSourcepublic FactoryCredentialSource(SecurityFactory<? extends Credential> credentialFactory) Deprecated.Construct a new instance.- Parameters:
- credentialFactory- the entry factory to use to instantiate the entry (must not be- null)
 
 
- 
 - 
Method Detail- 
getCredentialAcquireSupportpublic SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException Deprecated.Description copied from interface:CredentialSourceDetermine whether a given credential is definitely obtainable, possibly obtainable, or definitely not obtainable.- Specified by:
- getCredentialAcquireSupportin interface- CredentialSource
- Parameters:
- credentialType- the credential type class (must not be- null)
- algorithmName- the algorithm name, or- nullif any algorithm is acceptable or the credential type does not support algorithm names
- parameterSpec- the algorithm parameters to match, or- nullif 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
 
 - 
getCredentialpublic <C extends Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws IOException Deprecated.Description copied from interface:CredentialSourceAcquire a credential of the given type. The credential type is defined by itsClassand an optionalalgorithmName. If the algorithm name is not given, then the query is performed for any algorithm of the given type.- Specified by:
- getCredentialin interface- CredentialSource
- Type Parameters:
- C- the credential type
- Parameters:
- credentialType- the credential type class (must not be- null)
- algorithmName- the algorithm name, or- nullif any algorithm is acceptable or the credential type does not support algorithm names
- parameterSpec- the algorithm parameters to match, or- nullif any parameters are acceptable or the credential type does not support algorithm parameters
- Returns:
- the credential, or nullif the principal has no credential of that type
- Throws:
- IOException- if the realm is not able to handle requests for any reason
 
 
- 
 
-