|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.auth.CredentialsMapping
public final class CredentialsMapping
CredentialsMapping associates a Credentials instance with a 'realm' , that is the location to a server.
It also adds the notion of persistency, allowing to specify whether the credentials should be saved to disk when the
application quits and restored next time the application starts.
CredentialsManager| Constructor Summary | |
|---|---|
CredentialsMapping(Credentials credentials,
FileURL realm,
boolean isPersistent)
Creates a new CredentialsMapping instance that associates the specified credentials with the given location. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true if the given Object is a CredentialsMapping instance
whose credentials and realm are equals to those of this instance. |
Credentials |
getCredentials()
Returns the credentials. |
FileURL |
getRealm()
Returns the location associated with the credentials. |
boolean |
isPersistent()
Returns true if these credentials should be saved when the application terminates. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CredentialsMapping(Credentials credentials,
FileURL realm,
boolean isPersistent)
credentials - user credentialsrealm - the location to associate the credentials withisPersistent - if true, indicates to CredentialsManager that the credentials should be saved when the
application terminates.| Method Detail |
|---|
public Credentials getCredentials()
public FileURL getRealm()
Note: the returned FileURL does not contain any credentials.
public boolean isPersistent()
true if these credentials should be saved when the application terminates.
true if these credentials should be saved when the application terminates, false otherwise.public boolean equals(java.lang.Object o)
true if the given Object is a CredentialsMapping instance
whose credentials and realm are equals to those of this instance.
equals in class java.lang.Objecto - the Object to test for equality
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard