org.opennms.netmgt.config.capsd
Class SmbAuth

java.lang.Object
  extended by org.opennms.netmgt.config.capsd.SmbAuth
All Implemented Interfaces:
java.io.Serializable

public class SmbAuth
extends java.lang.Object
implements java.io.Serializable

SMB authentication. SMB authentication is not required by jCIFS in order to determine the NetBIOS name for a remote host which supports SMB. However it may be required in order to enumerate the hosts's list of file shares. It is during this enumeration that we are able to determine the operating system and MAC address of the remote system. SMB URLs (for enumerating file shares) are formatted as follows: If no matching SmbAuth, object URL has format: "smb://". For server authentication, URL has format: "smb://:@". For domain authentication, URL has format: "smb://;:@"

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
SmbAuth()
           
 
Method Summary
 java.lang.String getContent()
          Returns the value of field 'content'.
 java.lang.String getPassword()
          Returns the value of field 'password'.
 java.lang.String getType()
          Returns the value of field 'type'.
 java.lang.String getUser()
          Returns the value of field 'user'.
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 void setContent(java.lang.String content)
          Sets the value of field 'content'.
 void setPassword(java.lang.String password)
          Sets the value of field 'password'.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
 void setUser(java.lang.String user)
          Sets the value of field 'user'.
static java.lang.Object unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmbAuth

public SmbAuth()
Method Detail

getContent

public java.lang.String getContent()
Returns the value of field 'content'. The field 'content' has the following description: internal content storage

Returns:
String

getPassword

public java.lang.String getPassword()
Returns the value of field 'password'. The field 'password' has the following description: Password

Returns:
String

getType

public java.lang.String getType()
Returns the value of field 'type'. The field 'type' has the following description: Authentication type

Returns:
String

getUser

public java.lang.String getUser()
Returns the value of field 'user'. The field 'user' has the following description: User ID

Returns:
String

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

setContent

public void setContent(java.lang.String content)
Sets the value of field 'content'. The field 'content' has the following description: internal content storage

Parameters:
content - the value of field 'content'.

setPassword

public void setPassword(java.lang.String password)
Sets the value of field 'password'. The field 'password' has the following description: Password

Parameters:
password - the value of field 'password'.

setType

public void setType(java.lang.String type)
Sets the value of field 'type'. The field 'type' has the following description: Authentication type

Parameters:
type - the value of field 'type'.

setUser

public void setUser(java.lang.String user)
Sets the value of field 'user'. The field 'user' has the following description: User ID

Parameters:
user - the value of field 'user'.

unmarshal

public static java.lang.Object unmarshal(java.io.Reader reader)
                                  throws org.exolab.castor.xml.MarshalException,
                                         org.exolab.castor.xml.ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Method validate

Throws:
org.exolab.castor.xml.ValidationException


Copyright © 2007. All Rights Reserved.