|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.util.Authenticator
gov.nih.nlm.nls.util.PropertyAuthImpl
public class PropertyAuthImpl
An http authenthicator that uses system properities for initialization. This http 1.1 authenticator is initialized using system properties:
nls.service.username=<username> nls.service.password=<password>
| Field Summary | |
|---|---|
private char[] |
password
|
private java.lang.String |
username
|
| Constructor Summary | |
|---|---|
PropertyAuthImpl()
|
|
| Method Summary | |
|---|---|
java.net.PasswordAuthentication |
getPasswordAuthentication()
Get password authentication credentials. |
void |
setPassword(java.lang.String password)
Set password from supplied string. |
void |
setPasswordViaProperty(java.util.Properties properties)
Set password from user specified property.If property is null or not present use default property nls.service.password. |
void |
setUsername(java.lang.String username)
Set username from supplied string. |
void |
setUsernameViaProperty(java.util.Properties properties)
Set username from user specified property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String username
private char[] password
| Constructor Detail |
|---|
public PropertyAuthImpl()
| Method Detail |
|---|
public void setUsernameViaProperty(java.util.Properties properties)
properties - properties objectpublic void setPasswordViaProperty(java.util.Properties properties)
properties - properties objectpublic void setUsername(java.lang.String username)
username - name of user.public void setPassword(java.lang.String password)
password - password of user.public java.net.PasswordAuthentication getPasswordAuthentication()
Authenticator
getPasswordAuthentication in class Authenticator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||