public class NoAuthorization extends GSSAuthorization
| Constructor and Description |
|---|
NoAuthorization() |
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(GSSContext context,
String host)
Performs no authorization checks.
|
GSSName |
getExpectedName(GSSCredential cred,
String host)
Always returns null.
|
static NoAuthorization |
getInstance()
Returns a single instance of this class.
|
generateAuthorizationExceptionpublic static NoAuthorization getInstance()
public GSSName getExpectedName(GSSCredential cred, String host) throws GSSException
getExpectedName in class GSSAuthorizationcred - credentials usedhost - host address of the peer.GSSException - if unable to create the name.public void authorize(GSSContext context, String host) throws AuthorizationException
authorize in class Authorizationcontext - the securit contexthost - host address of the peer.AuthorizationException - if the peer is
not authorized to access/use the resource.Copyright © 2013. All Rights Reserved.