|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pf.security.authentication.LocationCredentials
public class LocationCredentials
Holds the userId and a password for a collection of URL patterns.
Constructor Summary | |
---|---|
LocationCredentials(String userId,
String password)
Initialize the new instance with a userId and corresponding passwords. |
|
LocationCredentials(String realm,
String userId,
String password)
Initialize the new instance with a userId and corresponding passwords. |
Method Summary | |
---|---|
void |
addPattern(String pattern)
Adds the given pattern to the URL patterns that can be accessed with this object's authentication credentials. |
void |
addPattern(org.pf.text.StringPattern pattern)
Adds the given pattern to the URL patterns that can be accessed with this object's authentication credentials. |
boolean |
appliesTo(String realm,
String url)
Returns true if the given realm and URL match the settings in this object. |
boolean |
appliesToRealm(String realm)
Returns true if the given realm matches the realm name of this object. |
boolean |
appliesToURL(String url)
Returns true if the given URL matches any of the underlying patterns. |
PasswordAuthentication |
getPasswordAuthentication()
Returns the password based authentication data. |
String |
getRealm()
Returns the realm this credentials apply to |
void |
setRealm(String realm)
Sets the realm this credentials apply to |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocationCredentials(String userId, String password)
userId
- The userId to be used for authenticationpassword
- The password to be used for authenticationpublic LocationCredentials(String realm, String userId, String password)
realm
- The realm that is accessible with the given credentialsuserId
- The userId to be used for authenticationpassword
- The password to be used for authenticationMethod Detail |
---|
public PasswordAuthentication getPasswordAuthentication()
public String getRealm()
public void setRealm(String realm)
public void addPattern(String pattern)
pattern
- A URL pattern that might contain '*' as wildcardspublic void addPattern(org.pf.text.StringPattern pattern)
pattern
- A URL pattern that might contain '*' as wildcardspublic boolean appliesTo(String realm, String url)
public boolean appliesToURL(String url)
public boolean appliesToRealm(String realm)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |