Interface Host
-
public interface HostThis class provides information about a host. This should eventually come from some form of dns-like lookup based on the CUA.Currently we are adding dynamic look-up and DKIM security to the model. Even with that in place there will be a need for hard-wired connections, with and without DKIM.
To increase security we should use some form of authentication. However, if we use servlet authentication we need to create accounts to authenticate against. Those accounts need to be given to administrators at other sites which is probably unacceptable. On the other hand we can run it through the unauthenticated service and check the id/pw ourselves.
The information here can be used for outgoing or can provide us with information to handle incoming requests. For incoming we need to resolve the host name and we then search for an entry prefixed with *IN*. We'll need to progressively shorten the name by removing leading elements until we get a match or there's nothing left. For example, if we get an incoming request for cal.example.org we check:
- *IN*cal.example.org
- *IN*example.org
- *IN*org
- *IN*
The last entry, if it exists, provides a default behavior. If absent we disallow all unidentified incoming requests. If present they must satisfy the requirements specified, e.g. DKIM
- Author:
- Mike Douglass douglm - rpi.edu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCaldavCredentials()StringgetCaldavPrincipal()StringgetCaldavUrl()List<String>getDkimPublicKeys()List of dkim public keys in form selector=keyStringgetFbUrl()StringgetHostname()StringgetIScheduleCredentials()StringgetISchedulePrincipal()StringgetIScheduleUrl()booleangetIScheduleUsePublicKey()True if we delivered our public key for use for dkimbooleangetLocalService()intgetPort()booleangetSecure()booleangetSupportsBedework()booleangetSupportsCaldav()booleangetSupportsFreebusy()booleangetSupportsISchedule()
-
-
-
Method Detail
-
getHostname
String getHostname()
- Returns:
- String hostname
-
getPort
int getPort()
- Returns:
- int
-
getSecure
boolean getSecure()
- Returns:
- String
-
getLocalService
boolean getLocalService()
- Returns:
- boolean localService
-
getCaldavUrl
String getCaldavUrl()
- Returns:
- String
-
getCaldavPrincipal
String getCaldavPrincipal()
- Returns:
- String
-
getCaldavCredentials
String getCaldavCredentials()
- Returns:
- String
-
getIScheduleUrl
String getIScheduleUrl()
- Returns:
- String
-
getISchedulePrincipal
String getISchedulePrincipal()
- Returns:
- String
-
getIScheduleCredentials
String getIScheduleCredentials()
- Returns:
- String
-
getDkimPublicKeys
List<String> getDkimPublicKeys()
List of dkim public keys in form selector=key- Returns:
- String
-
getIScheduleUsePublicKey
boolean getIScheduleUsePublicKey()
True if we delivered our public key for use for dkim- Returns:
- String
-
getFbUrl
String getFbUrl()
- Returns:
- String
-
getSupportsBedework
boolean getSupportsBedework()
- Returns:
- boolean true if caldav supported
-
getSupportsCaldav
boolean getSupportsCaldav()
- Returns:
- boolean true if caldav supported
-
getSupportsISchedule
boolean getSupportsISchedule()
- Returns:
- boolean true if iSchedule supported
-
getSupportsFreebusy
boolean getSupportsFreebusy()
- Returns:
- boolean true if Freebusy supported
-
-