public class HostAuthorization extends GSSAuthorization
| Modifier and Type | Field and Description |
|---|---|
static HostAuthorization |
ldapAuthorization |
| Constructor and Description |
|---|
HostAuthorization(String service) |
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(GSSContext context,
String host)
Performs host authentication.
|
boolean |
equals(Object o) |
GSSName |
getExpectedName(GSSCredential cred,
String host)
Returns expected
GSSName used for authorization purposes. |
static HostAuthorization |
getInstance()
Returns an instance of host authentication.
|
int |
hashCode() |
generateAuthorizationExceptionpublic static final HostAuthorization ldapAuthorization
public HostAuthorization(String service)
public static HostAuthorization getInstance()
public GSSName getExpectedName(GSSCredential cred, String host) throws GSSException
GSSAuthorizationGSSName used for authorization purposes.
Can returns null for self authorization.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 security contexthost - host address of the peer.AuthorizationException - if the hostnames
do not match.Copyright © 2016. All rights reserved.