oracle.calendar.soap.client.authentication
Class TrustedAuth
java.lang.Object
|
+--oracle.calendar.soap.client.authentication.TrustedAuth
- public class TrustedAuth
- extends java.lang.Object
The TrustedAuth class is used in the SOAP header to provide trusted service-to-service authentication services. The service provides a security token along with the username. The Security 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.
Method Summary |
org.w3c.dom.Element |
getElement()
Returns a new XML DOM structure representing the TrustedAuth SOAP header to be transmitted to the Calendar Web Service. |
void |
setName(java.lang.String in_name)
Assign the user name. |
void |
setToken(java.lang.String in_token)
Assign the service's security token. |
Methods inherited from class java.lang.Object |
<clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
m_namespace
private final java.lang.String m_namespace
m_token
private java.lang.String m_token
m_name
private java.lang.String m_name
TrustedAuth
public TrustedAuth()
- Default constructor.
setToken
public void setToken(java.lang.String in_token)
- Assign the service's security token.
-
- Parameters:
in_token
- a security token
setName
public void setName(java.lang.String in_name)
- Assign the user name. The user name can be a user id or a X.400 string representing the user. It should be noted that an X.400 first name/last name combination can result in a SOAP fault, if two user's have the same names.
-
- Parameters:
in_name
- a user name
getElement
public org.w3c.dom.Element getElement()
- Returns a new XML DOM structure representing the TrustedAuth SOAP header to be transmitted to the Calendar Web Service. This XML DOM can be passed directly to the Calendarlet's setAuthenticationHeader method.
-
- Returns:
- Element an XML DOM element tree
- See Also:
CalendarWebService.setAuthenticationHeader(org.w3c.dom.Element)