|
Openfire 3.3.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.openfire.sasl.AbstractAuthorizationProvider
org.jivesoftware.openfire.sasl.UnixK5LoginProvider
public class UnixK5LoginProvider
Provider for authorization. Checks if the authenticated principal is in the user's .k5login file. A traditional Unix Kerberos methodology. The location of this file can be configured in the openfire.xml file. An entry in that file would look like the following:
<unix> <k5login> /home/{0}/.k5login </k5login> </unix>The string {0} will be replaced with the username.
Constructor Summary | |
---|---|
UnixK5LoginProvider()
|
Method Summary | |
---|---|
void |
addAuthorized(String username,
Collection<String> principals)
Always throws UnsupportedOperationException. |
void |
addAuthorized(String username,
String principal)
Always throws UnsupportedOperationException. |
boolean |
authorize(String username,
String principal)
Returns true if the principal is explicity authorized to the JID |
String |
description()
Returns a description of the Policy |
Collection<String> |
getAuthorized(String username)
Returns a String Collection of principals that are authorized to use the named user. |
boolean |
isWritable()
Returns false, this implementation is not writeable. |
String |
name()
Returns the short name of the Policy |
void |
setAuthorized(String username,
Collection<String> principals)
Always throws UnsupportedOperationException. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnixK5LoginProvider()
Method Detail |
---|
public boolean authorize(String username, String principal)
authorize
in interface AuthorizationProvider
authorize
in class AbstractAuthorizationProvider
username
- The username requested.principal
- The principal requesting the username.
public Collection<String> getAuthorized(String username)
getAuthorized
in class AbstractAuthorizationProvider
username
- The username.
public boolean isWritable()
isWritable
in class AbstractAuthorizationProvider
public void addAuthorized(String username, String principal) throws UnsupportedOperationException
addAuthorized
in class AbstractAuthorizationProvider
username
- The username.principal
- The principal authorized to use the named user.
UnsupportedOperationException
- If this AuthorizationProvider cannot be updated.public void addAuthorized(String username, Collection<String> principals) throws UnsupportedOperationException
addAuthorized
in class AbstractAuthorizationProvider
username
- The username.principals
- The Collection of principals authorized to use the named user.
UnsupportedOperationException
- If this AuthorizationProvider cannot be updated.public void setAuthorized(String username, Collection<String> principals) throws UnsupportedOperationException
setAuthorized
in class AbstractAuthorizationProvider
username
- The username.principals
- The Collection of principals authorized to use the named user.
UnsupportedOperationException
- If this AuthorizationProvider cannot be updated.public String name()
name
in class AbstractAuthorizationProvider
public String description()
description
in class AbstractAuthorizationProvider
|
Openfire 3.3.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |