public class HostAuthorization extends GSSAuthorization
Modifier and Type | Field | Description |
---|---|---|
static HostAuthorization |
ldapAuthorization |
Constructor | Description |
---|---|
HostAuthorization(String service) |
Modifier and Type | Method | 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() |
generateAuthorizationException
public static final HostAuthorization ldapAuthorization
public HostAuthorization(String service)
public static HostAuthorization getInstance()
public GSSName getExpectedName(GSSCredential cred, String host) throws 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.GSSException
- if unable to create the name.public void authorize(GSSContext context, String host) throws AuthorizationException
authorize
in class Authorization
context
- the security contexthost
- host address of the peer.AuthorizationException
- if the hostnames
do not match.Copyright © 2018. All rights reserved.