All Packages Class Hierarchy This Package Previous Next Index
Interface sun.server.realm.Host
- public interface Host
- extends Principal
This is an interface that can be used for host based authentication.
-
equals(Host)
- Checks if the host represented by this Principal is the same as the
other host
-
getDomainName()
- Returns the domain name of this host
-
isSameDomain(Host)
- Checks if the host is in the same domain as the other host
getDomainName
public abstract String getDomainName()
- Returns the domain name of this host
- Returns:
- the domain name
equals
public abstract boolean equals(Host otherHost)
- Checks if the host represented by this Principal is the same as the
other host
- Parameters:
- otherHost - Principal representing other host
- Returns:
- true if same
isSameDomain
public abstract boolean isSameDomain(Host otherHost)
- Checks if the host is in the same domain as the other host
- Parameters:
- otherHost - Principal representing other host
- Returns:
- true if they are from the same domain
All Packages Class Hierarchy This Package Previous Next Index