Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sshtools.daemon.configuration
Class SshAPIConfiguration  view SshAPIConfiguration download SshAPIConfiguration.java

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bycom.sshtools.daemon.configuration.SshAPIConfiguration
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, com.sshtools.j2ssh.configuration.SshAPIConfiguration

public class SshAPIConfiguration
extends org.xml.sax.helpers.DefaultHandler
implements com.sshtools.j2ssh.configuration.SshAPIConfiguration

Version:
$Revision: 1.12 $

Field Summary
private  java.util.List authExtensions
           
private  java.util.List cipherExtensions
           
private  java.util.List compressionExtensions
           
private  java.lang.String currentElement
           
private  com.sshtools.j2ssh.configuration.ExtensionAlgorithm currentExt
           
private  java.util.List currentList
           
private  java.lang.String defaultCipher
           
private  java.lang.String defaultCompression
           
private  java.lang.String defaultKeyExchange
           
private  java.lang.String defaultMac
           
private  java.lang.String defaultPrivateFormat
           
private  java.lang.String defaultPublicFormat
           
private  java.lang.String defaultPublicKey
           
private  java.util.List kexExtensions
           
private  java.util.List macExtensions
           
private  java.lang.String parentElement
           
private  java.util.List pkExtensions
           
private  java.util.List pkFormats
           
private  java.util.List prvFormats
           
 
Constructor Summary
SshAPIConfiguration(java.io.InputStream in)
          Creates a new SshAPIConfiguration object.
 
Method Summary
 void characters(char[] ch, int start, int length)
          Receive notification of character data inside an element.
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qname)
          Receive notification of the end of an element.
 java.util.List getAuthenticationExtensions()
           
 java.util.List getCipherExtensions()
           
 java.util.List getCompressionExtensions()
           
 java.lang.String getDefaultCipher()
           
 java.lang.String getDefaultCompression()
           
 java.lang.String getDefaultKeyExchange()
           
 java.lang.String getDefaultMac()
           
 java.lang.String getDefaultPrivateKeyFormat()
           
 java.lang.String getDefaultPublicKey()
           
 java.lang.String getDefaultPublicKeyFormat()
           
 java.util.List getKeyExchangeExtensions()
           
 java.util.List getMacExtensions()
           
 java.util.List getPrivateKeyFormats()
           
 java.util.List getPublicKeyExtensions()
           
 java.util.List getPublicKeyFormats()
           
 void reload(java.io.InputStream in)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes attrs)
          Receive notification of the start of an element.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

defaultCipher

private java.lang.String defaultCipher

defaultMac

private java.lang.String defaultMac

defaultCompression

private java.lang.String defaultCompression

defaultPublicKey

private java.lang.String defaultPublicKey

defaultKeyExchange

private java.lang.String defaultKeyExchange

cipherExtensions

private java.util.List cipherExtensions

macExtensions

private java.util.List macExtensions

compressionExtensions

private java.util.List compressionExtensions

pkExtensions

private java.util.List pkExtensions

kexExtensions

private java.util.List kexExtensions

authExtensions

private java.util.List authExtensions

pkFormats

private java.util.List pkFormats

prvFormats

private java.util.List prvFormats

defaultPublicFormat

private java.lang.String defaultPublicFormat

defaultPrivateFormat

private java.lang.String defaultPrivateFormat

currentElement

private java.lang.String currentElement

parentElement

private java.lang.String parentElement

currentList

private java.util.List currentList

currentExt

private com.sshtools.j2ssh.configuration.ExtensionAlgorithm currentExt
Constructor Detail

SshAPIConfiguration

public SshAPIConfiguration(java.io.InputStream in)
                    throws org.xml.sax.SAXException,
                           javax.xml.parsers.ParserConfigurationException,
                           java.io.IOException
Creates a new SshAPIConfiguration object.

Method Detail

reload

public void reload(java.io.InputStream in)
            throws org.xml.sax.SAXException,
                   javax.xml.parsers.ParserConfigurationException,
                   java.io.IOException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of character data inside an element.

By default, do nothing. Application writers may override this method to take specific actions for each chunk of character data (such as adding the data to a node or buffer, or printing it to a file).

Specified by:
characters in interface org.xml.sax.ContentHandler

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qname)
                throws org.xml.sax.SAXException
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of the end of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the end of each element (such as finalising a tree node or writing output to a file).

Specified by:
endElement in interface org.xml.sax.ContentHandler

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qname,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Description copied from class: org.xml.sax.helpers.DefaultHandler
Receive notification of the start of an element.

By default, do nothing. Application writers may override this method in a subclass to take specific actions at the start of each element (such as allocating a new tree node or writing output to a file).

Specified by:
startElement in interface org.xml.sax.ContentHandler

getCompressionExtensions

public java.util.List getCompressionExtensions()
Specified by:
getCompressionExtensions in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getCipherExtensions

public java.util.List getCipherExtensions()
Specified by:
getCipherExtensions in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getMacExtensions

public java.util.List getMacExtensions()
Specified by:
getMacExtensions in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getAuthenticationExtensions

public java.util.List getAuthenticationExtensions()
Specified by:
getAuthenticationExtensions in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getPublicKeyExtensions

public java.util.List getPublicKeyExtensions()
Specified by:
getPublicKeyExtensions in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getKeyExchangeExtensions

public java.util.List getKeyExchangeExtensions()
Specified by:
getKeyExchangeExtensions in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getDefaultCipher

public java.lang.String getDefaultCipher()
Specified by:
getDefaultCipher in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getDefaultMac

public java.lang.String getDefaultMac()
Specified by:
getDefaultMac in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getDefaultCompression

public java.lang.String getDefaultCompression()
Specified by:
getDefaultCompression in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getDefaultPublicKey

public java.lang.String getDefaultPublicKey()
Specified by:
getDefaultPublicKey in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getDefaultKeyExchange

public java.lang.String getDefaultKeyExchange()
Specified by:
getDefaultKeyExchange in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getDefaultPublicKeyFormat

public java.lang.String getDefaultPublicKeyFormat()
Specified by:
getDefaultPublicKeyFormat in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getDefaultPrivateKeyFormat

public java.lang.String getDefaultPrivateKeyFormat()
Specified by:
getDefaultPrivateKeyFormat in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getPublicKeyFormats

public java.util.List getPublicKeyFormats()
Specified by:
getPublicKeyFormats in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

getPrivateKeyFormats

public java.util.List getPrivateKeyFormats()
Specified by:
getPrivateKeyFormats in interface com.sshtools.j2ssh.configuration.SshAPIConfiguration

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).