Class WordpressBasicAuthentication
- java.lang.Object
-
- org.apache.camel.component.wordpress.api.auth.WordpressBasicAuthentication
-
- All Implemented Interfaces:
WordpressAuthentication
public class WordpressBasicAuthentication extends Object
Basic Authentication implementation for Wordpress authentication mechanism. Should be used only on tested environments due to lack of security. Be aware that credentials will be passed over each request to your server. On environments without non HTTPS this a high security risk. To this implementation work, the Basic Authentication Plugin must be installed into the Wordpress server.
-
-
Constructor Summary
Constructors Constructor Description WordpressBasicAuthentication()WordpressBasicAuthentication(String username, String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureAuthentication(Object api)HTTP Basic Authentication configuration over CXFClientConfiguration.StringgetPassword()StringgetUsername()protected booleanisCredentialsSet()voidsetPassword(String pwd)voidsetUsername(String user)
-
-
-
Method Detail
-
configureAuthentication
public void configureAuthentication(Object api)
HTTP Basic Authentication configuration over CXFClientConfiguration.- See Also:
- CXF Clients and Authentication
-
setPassword
public final void setPassword(String pwd)
- Specified by:
setPasswordin interfaceWordpressAuthentication
-
setUsername
public final void setUsername(String user)
- Specified by:
setUsernamein interfaceWordpressAuthentication
-
getPassword
public final String getPassword()
-
getUsername
public final String getUsername()
- Specified by:
getUsernamein interfaceWordpressAuthentication
-
isCredentialsSet
protected final boolean isCredentialsSet()
-
-