oracle.calendar.soap.client.authentication
Class BasicAuth
java.lang.Object
|
+--oracle.calendar.soap.client.authentication.BasicAuth
- public class BasicAuth
- extends java.lang.Object
The BasicAuth class is used in the SOAP header to provide basic authentication services. The username and password are passed plaintext within a SOAP request. This mechanism is not secure and should be used for development and testing purposes. If BasicAuth is to be used in a production environment, the SSL protocol should be used to secure the HTTP connection between the SOAP client and Calendaring Web Services host.
Constructor Summary |
BasicAuth()
Default constructor. |
Method Summary |
org.w3c.dom.Element |
getElement()
Returns a new XML DOM structure representing the BasicAuth SOAP header to be transmitted to the Calendar Web Service. |
void |
setName(java.lang.String in_name)
Assign the user name. |
void |
setPassword(java.lang.String in_password)
Assign the user's password. |
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_name
private java.lang.String m_name
m_password
private java.lang.String m_password
BasicAuth
public BasicAuth()
- Default constructor.
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
setPassword
public void setPassword(java.lang.String in_password)
- Assign the user's password. It's important to note that the password is transmitted in plaintext format. Use another authentication mechanism or SSL if the information is sensitive.
-
- Parameters:
in_password
- a password
getElement
public org.w3c.dom.Element getElement()
- Returns a new XML DOM structure representing the BasicAuth 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)