public class Password extends Object implements Authentication, JSchBasedAuthentication, HttpBasedAuthentication
Authentication.
WARNING: It is generally unadvisable to use password-based Authentication.
Instead secure public/private key-based Authentications should be used.
Copyright (c) 2014. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
SecureKeys| Constructor and Description |
|---|
Password(String password)
Constructs a
Password. |
| Modifier and Type | Method and Description |
|---|---|
void |
configureFramework(com.jcraft.jsch.JSch jsch)
|
void |
configureSession(com.jcraft.jsch.Session session)
|
HttpURLConnection |
openConnection(URL url,
String userName,
com.oracle.bedrock.OptionsByType optionsByType)
Open a connection to the specified URL and configure the connection with the
correct authentication mechanism.
|
public void configureFramework(com.jcraft.jsch.JSch jsch)
JSchBasedAuthenticationconfigureFramework in interface JSchBasedAuthenticationjsch - the JSch framework to configurepublic void configureSession(com.jcraft.jsch.Session session)
JSchBasedAuthenticationconfigureSession in interface JSchBasedAuthenticationsession - the Session to configurepublic HttpURLConnection openConnection(URL url, String userName, com.oracle.bedrock.OptionsByType optionsByType) throws IOException
HttpBasedAuthenticationopenConnection in interface HttpBasedAuthenticationurl - the URL to connect touserName - the name of the user to use to open the connectionoptionsByType - an OptionsByType to use to configure authenticationHttpURLConnection to the specified URLIOException - when the connection can't be openedCopyright © 2017. All rights reserved.