|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.Authenticator
com.sptci.SimpleAuthenticator
public class SimpleAuthenticator
A simple authenticator implementation for a specified userName
and password combination.
© Copyright 2007, Sans Pareil Technologies, Inc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.net.Authenticator |
|---|
Authenticator.RequestorType |
| Constructor Summary | |
|---|---|
SimpleAuthenticator(String userName,
String password)
Create a new instance of the authenticator using the specified credentials; |
|
| Method Summary | |
|---|---|
String |
getPassword()
Returns the value of password. |
protected PasswordAuthentication |
getPasswordAuthentication()
Called when password authorization is needed. |
String |
getUserName()
Returns the value of userName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleAuthenticator(String userName,
String password)
userName - The userName value to use.password - The password value to use.| Method Detail |
|---|
protected PasswordAuthentication getPasswordAuthentication()
getPasswordAuthentication in class AuthenticatorAuthenticator.getPasswordAuthentication()public String getUserName()
userName.
public String getPassword()
password.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||