public class NoAuthorization extends GSSAuthorization
Modifier and Type | Field and Description |
---|---|
private static NoAuthorization |
authorization |
private static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
NoAuthorization() |
Modifier and Type | Method and Description |
---|---|
void |
authorize(org.ietf.jgss.GSSContext context,
java.lang.String host)
Performs no authorization checks.
|
org.ietf.jgss.GSSName |
getExpectedName(org.ietf.jgss.GSSCredential cred,
java.lang.String host)
Always returns null.
|
static NoAuthorization |
getInstance()
Returns a single instance of this class.
|
generateAuthorizationException
private static org.apache.commons.logging.Log logger
private static NoAuthorization authorization
public static NoAuthorization getInstance()
public org.ietf.jgss.GSSName getExpectedName(org.ietf.jgss.GSSCredential cred, java.lang.String host) throws org.ietf.jgss.GSSException
getExpectedName
in class GSSAuthorization
cred
- credentials usedhost
- host address of the peer.org.ietf.jgss.GSSException
- if unable to create the name.public void authorize(org.ietf.jgss.GSSContext context, java.lang.String host) throws AuthorizationException
authorize
in class Authorization
context
- the securit contexthost
- host address of the peer.AuthorizationException
- if the peer is
not authorized to access/use the resource.