Commit ec0521a9 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Allow delete of Native and POP3 providers (JM-425).

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3069 b35dd754-fafc-0310-a699-88a17e54d16e
parent fcdaf9f8
......@@ -4,8 +4,8 @@ package org.jivesoftware.messenger.user;
* A UserProvider to be used in conjunction with
* {@link org.jivesoftware.messenger.auth.NativeAuthProvider NativeAuthProvider}, which
* authenticates using OS-level authentication. New user accounts will automatically be
* created as needed (upon successful initial authentication) and are subsequently treated as
* read-only. To enable this provider, edit the XML config file file and set:
* created as needed (upon successful initial authentication). To enable this provider,
* edit the XML config file file and set:
*
* <pre>
* &lt;provider&gt;
......@@ -24,8 +24,8 @@ package org.jivesoftware.messenger.user;
*/
public class NativeUserProvider extends DefaultUserProvider {
public boolean isReadOnly() {
return true;
public void setPassword(String username, String password) throws UserNotFoundException {
throw new UnsupportedOperationException();
}
public boolean supportsPasswordRetrieval() {
......
......@@ -16,7 +16,8 @@ package org.jivesoftware.messenger.user;
* {@link org.jivesoftware.messenger.auth.POP3AuthProvider POP3AuthProvider}, which
* authenticates using a POP3 server. New user accounts will automatically be created
* as needed (upon successful initial authentication) and are subsequently treated as
* read-only. To enable this provider, edit the XML config file file and set:
* read-only (for the most part). To enable this provider, edit the XML config file
* and set:
*
* <pre>
* &lt;provider&gt;
......@@ -34,8 +35,12 @@ package org.jivesoftware.messenger.user;
*/
public class POP3UserProvider extends DefaultUserProvider {
public boolean isReadOnly() {
return true;
public void setEmail(String username, String email) throws UserNotFoundException {
throw new UnsupportedOperationException();
}
public void setPassword(String username, String password) throws UserNotFoundException {
throw new UnsupportedOperationException();
}
public boolean supportsPasswordRetrieval() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment