com.sshtools.common.configuration
Class Authorization

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by com.sshtools.common.configuration.Authorization
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class Authorization
extends org.xml.sax.helpers.DefaultHandler

Version:
$Revision: 1.1 $
Author:
$author$

Nested Class Summary
(package private)  class Authorization.AuthorizedKeysSAXHandler
           
 
Field Summary
private  java.util.ArrayList authorizedKeys
           
private static java.lang.String AUTHORIZEDKEYS_ELEMENT
           
private static java.lang.String KEY_ELEMENT
           
 
Constructor Summary
Authorization()
          Creates a new Authorization object.
Authorization(java.io.InputStream in)
          Creates a new Authorization object.
 
Method Summary
 void addKey(java.lang.String keyfile)
           
 java.util.List getAuthorizedKeys()
           
 java.lang.String toString()
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUTHORIZEDKEYS_ELEMENT

private static final java.lang.String AUTHORIZEDKEYS_ELEMENT
See Also:
Constant Field Values

KEY_ELEMENT

private static final java.lang.String KEY_ELEMENT
See Also:
Constant Field Values

authorizedKeys

private java.util.ArrayList authorizedKeys
Constructor Detail

Authorization

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

Parameters:
in -
Throws:
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
java.io.IOException

Authorization

public Authorization()
Creates a new Authorization object.

Method Detail

getAuthorizedKeys

public java.util.List getAuthorizedKeys()
Returns:

addKey

public void addKey(java.lang.String keyfile)
Parameters:
keyfile -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns: