public class SelfAuthorization extends GSSAuthorization
Constructor and Description |
---|
SelfAuthorization() |
Modifier and Type | Method and Description |
---|---|
void |
authorize(org.ietf.jgss.GSSContext context,
java.lang.String host)
Performs self authorization.
|
org.ietf.jgss.GSSName |
getExpectedName(org.ietf.jgss.GSSCredential cred,
java.lang.String host)
Returns expected
GSSName used for authorization purposes. |
static SelfAuthorization |
getInstance()
Returns a single instance of this class.
|
generateAuthorizationException
public static SelfAuthorization getInstance()
public org.ietf.jgss.GSSName getExpectedName(org.ietf.jgss.GSSCredential cred, java.lang.String host) throws org.ietf.jgss.GSSException
GSSAuthorization
GSSName
used for authorization purposes.
Can returns null for self authorization.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.Copyright © 2012. All Rights Reserved.