Package org.wildfly.security.auth.util
Class ElytronFilePasswordProvider
java.lang.Object
org.wildfly.security.auth.util.ElytronFilePasswordProvider
- All Implemented Interfaces:
org.apache.sshd.common.config.keys.FilePasswordProvider
public class ElytronFilePasswordProvider
extends Object
implements org.apache.sshd.common.config.keys.FilePasswordProvider
An implementation of
FilePasswordProvider which can provide the password to decrypt a private key using a
CredentialSource or Credential- Author:
- Ashley Abdel-Sayed
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sshd.common.config.keys.FilePasswordProvider
org.apache.sshd.common.config.keys.FilePasswordProvider.Decoder<T extends Object>, org.apache.sshd.common.config.keys.FilePasswordProvider.ResourceDecodeResult -
Field Summary
Fields inherited from interface org.apache.sshd.common.config.keys.FilePasswordProvider
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionElytronFilePasswordProvider(org.wildfly.common.function.ExceptionSupplier<CredentialSource, XMLStreamException> credentialSourceSupplier) ElytronFilePasswordProvider(Credential credential) -
Method Summary
Modifier and TypeMethodDescriptiongetPassword(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resourceKey, int retryIndex) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.config.keys.FilePasswordProvider
decode, handleDecodeAttemptResult
-
Constructor Details
-
ElytronFilePasswordProvider
public ElytronFilePasswordProvider(org.wildfly.common.function.ExceptionSupplier<CredentialSource, XMLStreamException> credentialSourceSupplier) -
ElytronFilePasswordProvider
-
-
Method Details
-
getPassword
public String getPassword(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resourceKey, int retryIndex) throws IOException - Specified by:
getPasswordin interfaceorg.apache.sshd.common.config.keys.FilePasswordProvider- Throws:
IOException
-