Oracle® Calendar Web Services Java API Reference
10g Release 1 (10.1.1)

B14475-01


oracle.calendar.soap.client.authentication
Class ServiceAuth

java.lang.Object
  extended byoracle.calendar.soap.client.authentication.ServiceAuth


public class ServiceAuth
extends java.lang.Object

Allows an application to authenticate itself to Calendar Web services.

The properties <ApplicationName> and <ApplicationPassword> are specified in OID and configured in the Calendar Server. Once the application is authenticated, a security token will be generated.

This secuity token is available only through trusted Oracle Application Server/Collaboration Server components. The Security token can expire at any given moment. If so, the Web Services call can be made again; however, there will be no way of knowing the token has expired. If there is a SOAP fault, the call should be tried once and only once.


Constructor Summary
ServiceAuth()
Default constructor.

Method Summary
org.w3c.dom.Element getElement()
Returns a new XML DOM structure representing the ServiceAuth SOAP header to be sent to Calendar Web services.
void setApplicationName(java.lang.String in_appname)
Specifies the name of the application that wishes to authenticate to Calendar Web services.
void setApplicationPassword(java.lang.String in_apppassword)
Specifies the application's password.
void setName(java.lang.String in_name)
Specifies the user name.

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ServiceAuth

public ServiceAuth()
Default constructor. version 2004-03-30 fix010260

Method Detail

setApplicationName

public void setApplicationName(java.lang.String in_appname)
Specifies the name of the application that wishes to authenticate to Calendar Web services. version 2004-03-30 fix010260
Parameters:
in_appname - application name

setApplicationPassword

public void setApplicationPassword(java.lang.String in_apppassword)
Specifies the application's password. version 2004-03-30 fix010260
Parameters:
in_apppassword - application password

setName

public void setName(java.lang.String in_name)
Specifies the user name. The user name can be a user ID or a X.400 string representing the user. Note: An X.400 first name/last name combination can result in a SOAP fault if two users have the same names. version 2004-03-30 fix010260
Parameters:
in_name - a user name

getElement

public org.w3c.dom.Element getElement()
Returns a new XML DOM structure representing the ServiceAuth SOAP header to be sent to Calendar Web services. This XML DOM can be passed directly to the Calendarlet's setAuthenticationHeader method. version 2004-04-19 fix010293
Returns:
Element - XML DOM element tree
See Also:
CalendarWebService.setAuthenticationHeader(org.w3c.dom.Element)

Oracle® Calendar Web Services Java API Reference
10g Release 1 (10.1.1)

B14475-01


Copyright © 1998, 2005, Oracle. All rights reserved.