| java.lang.Object com.sun.ssoadapter.AbstractSSOAdapter com.sun.ssoadapter.impl.JCAPISSOAdapter
JCAPISSOAdapter | public class JCAPISSOAdapter extends AbstractSSOAdapter (Code) | | This class extends the abstract SSOAdapter functionality
specific to the Sun One Portal and Calendar services.
Specific features include:
- Support for username/password style authentication.
At the present time, username/password is stored in the clear.
This CalendarSSOHelper implementation consumes the following
Configuration properties:
- protocol: Required value. Specifies the protocol
JCAPI will use to connect to the calendar server.
For the time being, this should always be "http".
- uid: Required value. Username (uid) of calendar user.
- password: Required value. Password of calendar user.
- host: Required value. Name of host providing IMAP service.
- port: Optional value. Port number of calendar server.
Defaults to "80"
- clientProtocol: Protocol to specify within URLs that activate
web application functionality. Defaults to "http".
- clientPort: Port to specify within URLs that that activate web
application functionality. Defaults to "80".
- checkInterval: Specifies, in milliseconds, the minimum interval
between backend server availability checks.
version: 1.0 See Also: com.sun.ssoadapter.SSOAdapter See Also: com.sun.ssoadapter.SSOAdapterFactory |
Method Summary | |
public boolean | closeConnection() Adapter specific Connection termination. | public CalendarSession | getCalSession() Returns a JCAPI CalSession object. | public CalendarStore | getCalStore() Returns a JCAPI CalendarStore object. | public Object | getConnection() Adapter specific Connection. | public void | init(String adapterName, SSOToken token, Properties adapterProperties, List userPropertiesList, List encodedProperteisList, Locale locale) Initialize and validate JCAPISSOAdapter. | public boolean | isAvailable() Tests service availability. | public void | ssoTokenChanged(SSOTokenEvent evt) Implements SSOTokenListener "ssoTokenChanged" method.
The following are possible SSO token event types:
- SSO_TOKEN_IDLE_TIMEOUT
- SSO_TOKEN_MAX_TIMEOUT
- SSO_TOKEN_DESTROY
The event getType() method is used to ensure that one of the
three types above are the basis for this event. | public void | validate() Validates configuration. |
CALENDAR_DEFAULT_PORT | protected static String CALENDAR_DEFAULT_PORT(Code) | | |
CALENDAR_DEFAULT_PROTOCOL | protected static String CALENDAR_DEFAULT_PROTOCOL(Code) | | |
CLIENT_DEFAULT_PORT | protected static String CLIENT_DEFAULT_PORT(Code) | | |
CLIENT_DEFAULT_PROTOCOL | protected static String CLIENT_DEFAULT_PROTOCOL(Code) | | |
calSession | protected CalendarSession calSession(Code) | | CalendarSession object for this CalendarSSOHelper.
|
calStore | protected CalendarStore calStore(Code) | | CalendarStore object for this CalendarSSOHelper.
|
checkInterval | protected long checkInterval(Code) | | |
lastCheckTime | protected long lastCheckTime(Code) | | |
closeConnection | public boolean closeConnection()(Code) | | Adapter specific Connection termination.
true if the connection was terminated successfully. |
getCalSession | public CalendarSession getCalSession() throws Exception(Code) | | Returns a JCAPI CalSession object.
|
getCalStore | public CalendarStore getCalStore() throws Exception(Code) | | Returns a JCAPI CalendarStore object.
|
getConnection | public Object getConnection()(Code) | | Adapter specific Connection.
|
init | public void init(String adapterName, SSOToken token, Properties adapterProperties, List userPropertiesList, List encodedProperteisList, Locale locale) throws SSOAdapterException(Code) | | Initialize and validate JCAPISSOAdapter.
Parameters: adapterName - Used to identify the SSOAdapter Parameters: token - Used to identify the user on who's behalf the request isbeing processed. Parameters: adapterProperties - Contains the adapter information that will drivethe operation of this instance of an SSOAdapter. |
isAvailable | public boolean isAvailable()(Code) | | Tests service availability.
|
ssoTokenChanged | public void ssoTokenChanged(SSOTokenEvent evt)(Code) | | Implements SSOTokenListener "ssoTokenChanged" method.
The following are possible SSO token event types:
- SSO_TOKEN_IDLE_TIMEOUT
- SSO_TOKEN_MAX_TIMEOUT
- SSO_TOKEN_DESTROY
The event getType() method is used to ensure that one of the
three types above are the basis for this event. If getType()
returns a type not listed above, then an SSOException is thrown.
Parameters: evt - SSOTokenEvent |
|
|