public class HostAuthorization extends GSSAuthorization
| Modifier and Type | Field and Description |
|---|---|
static HostAuthorization |
ldapAuthorization |
| Constructor and Description |
|---|
HostAuthorization(java.lang.String service) |
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(org.ietf.jgss.GSSContext context,
java.lang.String host)
Performs host authentication.
|
boolean |
equals(java.lang.Object o) |
org.ietf.jgss.GSSName |
getExpectedName(org.ietf.jgss.GSSCredential cred,
java.lang.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 static HostAuthorization getInstance()
public org.ietf.jgss.GSSName getExpectedName(org.ietf.jgss.GSSCredential cred,
java.lang.String host)
throws org.ietf.jgss.GSSException
GSSAuthorizationGSSName used for authorization purposes.
Can returns null for self authorization.getExpectedName in class GSSAuthorizationcred - 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 Authorizationcontext - the security contexthost - host address of the peer.AuthorizationException - if the hostnames
do not match.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2013. All Rights Reserved.