|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.fikin.ant.httpclientanttask.AntCredentials
public class AntCredentials
Example:
<credentials type="basic" username="..." password="..." />
<credentials type="basic" username="..." password="..." domain="ms" >
<authscope ... />
</credentials>
created on Feb 8, 2006
Constructor Summary | |
---|---|
AntCredentials()
|
Method Summary | |
---|---|
void |
check()
check if type, username and passwords are set |
AntAuthScope |
createAuthScope()
create new authentication scope |
org.apache.commons.httpclient.auth.AuthScope |
getAuthScope()
get defined authentication scope |
org.apache.commons.httpclient.Credentials |
getCredentials()
return the appropriate HttpClient object for given credentials |
java.lang.String |
getDomain()
get authentication doamin |
java.lang.String |
getHost()
get authentication host |
java.lang.String |
getPassword()
get password used to authenticate the username |
java.lang.String |
getType()
get http authentication type, by default it is "basic" |
java.lang.String |
getUsername()
get authentication username |
void |
setDomain(java.lang.String domain)
set the http authentication domain |
void |
setHost(java.lang.String host)
authentication host |
void |
setPassword(java.lang.String pswd)
set authentication password |
void |
setType(java.lang.String type)
set http authentication type, by default it is "basic" |
void |
setUsername(java.lang.String username)
set authentication user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AntCredentials()
Method Detail |
---|
public void setType(java.lang.String type)
type
- is "baisc", "nt" and suchpublic java.lang.String getType()
public void setUsername(java.lang.String username)
username
- to use for authenticationpublic java.lang.String getUsername()
public void setPassword(java.lang.String pswd)
pswd
- to use for the http authenticationpublic java.lang.String getPassword()
public void setDomain(java.lang.String domain)
domain
- to setpublic java.lang.String getDomain()
public void setHost(java.lang.String host)
host
- to setpublic java.lang.String getHost()
public AntAuthScope createAuthScope()
public void check() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public org.apache.commons.httpclient.Credentials getCredentials()
public org.apache.commons.httpclient.auth.AuthScope getAuthScope()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |