|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpFormBasedAuthCredential
Credential for authenticating at the back-end via Http form based authentication. To be used in following way:
UserPasswordCredential
)
Field Summary | |
---|---|
static java.lang.String |
KEY_FORM_DATA
Deprecated. Specifies whether the authentication data are cookies [true] or URL rewriting [false] (mandatory). |
static java.lang.String |
KEY_LOGIN_URL
Deprecated. The url to which the login data is posted (mandatory). |
static java.lang.String |
KEY_LOGOUT_URL
Deprecated. The url to which an HTTP GET request is send in order to log out the user (mandatory). |
static java.lang.String |
KEY_PASSWORD_ATTRIBUTE_NAME
Deprecated. The name under which the user password is posted (mandatory). |
static java.lang.String |
KEY_USE_AUTH_COOKIES
Deprecated. Any additional name=value . |
static java.lang.String |
KEY_USERID_ATTRIBUTE_NAME
Deprecated. The name under which the user id is posted (mandatory). |
Fields inherited from interface com.ibm.portal.portlet.service.credentialvault.credentials.Credential |
---|
KEY_CREDENTIAL_SECRET |
Method Summary | |
---|---|
java.net.HttpURLConnection |
getAuthenticatedConnection(java.lang.String url)
Deprecated. Returns a new HttpURLConnection with added authentication data. |
java.net.HttpURLConnection |
getAuthenticatedConnection(java.net.URL url)
Deprecated. Returns a new HttpURLConnection with added authentication data. |
void |
init(java.util.Map<java.lang.String,java.lang.Object> config)
Deprecated. Initializes a new Http Form Based Authentication Credential. |
java.net.HttpURLConnection |
login()
Deprecated. Performs the HTTP form based login. |
java.net.HttpURLConnection |
logout()
Deprecated. Performs the logout through an HTTP GET request to the logout Url. |
Methods inherited from interface com.ibm.portal.portlet.service.credentialvault.credentials.UserPasswordCredential |
---|
getSecretType |
Methods inherited from interface com.ibm.portal.portlet.service.credentialvault.credentials.ActiveCredential |
---|
isActive |
Field Detail |
---|
static final java.lang.String KEY_USERID_ATTRIBUTE_NAME
static final java.lang.String KEY_PASSWORD_ATTRIBUTE_NAME
static final java.lang.String KEY_LOGIN_URL
static final java.lang.String KEY_LOGOUT_URL
static final java.lang.String KEY_FORM_DATA
static final java.lang.String KEY_USE_AUTH_COOKIES
name=value
.
Method Detail |
---|
void init(java.util.Map<java.lang.String,java.lang.Object> config) throws CredentialVaultException
init
in interface Credential
init
in interface UserPasswordCredential
config
- The configuration that is needed to initialize this credential:
name=value
pairs that need to be posted with the login POST (optional)CredentialVaultException
- If any mandatory parameter is missing or has a wrong object type as value.java.net.HttpURLConnection login() throws java.io.IOException
java.io.IOException
- if the login failed or no cookie has been returned.java.net.HttpURLConnection logout() throws java.io.IOException
java.io.IOException
- if the logout failed or credential status is not 'logged in'.java.net.HttpURLConnection getAuthenticatedConnection(java.lang.String url) throws java.io.IOException
url
- the target URL for the connection.
java.io.IOException
- thrown if anything unexpected happens.java.net.HttpURLConnection getAuthenticatedConnection(java.net.URL url) throws java.io.IOException
url
- the target URL for the connection. Note that it need not be opened yet.
Note also that this method may only be called if cookies are used for authentication.
java.io.IOException
- thrown if anything unexpected happens.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |