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 ofFilePasswordProvider
which can provide the password to decrypt a private key using aCredentialSource
orCredential
- Author:
- Ashley Abdel-Sayed
-
-
Constructor Summary
Constructors Constructor Description ElytronFilePasswordProvider(org.wildfly.common.function.ExceptionSupplier<CredentialSource,XMLStreamException> credentialSourceSupplier)
ElytronFilePasswordProvider(Credential credential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPassword(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resourceKey, int retryIndex)
-
-
-
Constructor Detail
-
ElytronFilePasswordProvider
public ElytronFilePasswordProvider(org.wildfly.common.function.ExceptionSupplier<CredentialSource,XMLStreamException> credentialSourceSupplier)
-
ElytronFilePasswordProvider
public ElytronFilePasswordProvider(Credential credential)
-
-
Method Detail
-
getPassword
public String getPassword(org.apache.sshd.common.session.SessionContext session, org.apache.sshd.common.NamedResource resourceKey, int retryIndex) throws IOException
- Specified by:
getPassword
in interfaceorg.apache.sshd.common.config.keys.FilePasswordProvider
- Throws:
IOException
-
-