Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.sshtools.j2ssh.transport.publickey
Class OpenSSHPublicKeyFormat

    java.lang.Object
      com.sshtools.j2ssh.transport.publickey.OpenSSHPublicKeyFormat

All Implemented Interfaces:
  SshPublicKeyFormat

public class OpenSSHPublicKeyFormat
extends java.lang.Object
implements SshPublicKeyFormat

DOCUMENT ME!

Constructor Summary
`OpenSSHPublicKeyFormat()` Creates a new OpenSSHPublicKeyFormat object.
`OpenSSHPublicKeyFormat(java.lang.String comment)` Creates a new OpenSSHPublicKeyFormat object.

Method Summary
`byte[]` | `formatKey(byte[] keyblob)` DOCUMENT ME!
`java.lang.String` | `getComment()` DOCUMENT ME!
`java.lang.String` | `getFormatType()` DOCUMENT ME!
`byte[]` | `getKeyBlob(byte[] formattedKey)` DOCUMENT ME!
`boolean` | `isFormatted(byte[] formattedKey)` DOCUMENT ME!
`void` | `setComment(java.lang.String comment)` DOCUMENT ME!
`boolean` | `supportsAlgorithm(java.lang.String algorithm)` DOCUMENT ME!

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### OpenSSHPublicKeyFormat

    public OpenSSHPublicKeyFormat(java.lang.String comment)

  Creates a new OpenSSHPublicKeyFormat object.

Parameters:
  `comment` - DOCUMENT ME!

### OpenSSHPublicKeyFormat

    public OpenSSHPublicKeyFormat()

  Creates a new OpenSSHPublicKeyFormat object.

Method Detail

### setComment

    public void setComment(java.lang.String comment)

  DOCUMENT ME!

  Specified by:
    `setComment` in interface `SshPublicKeyFormat`
  Parameters:
    `comment` - DOCUMENT ME!

### getComment

    public java.lang.String getComment()

  DOCUMENT ME!

  Specified by:
    `getComment` in interface `SshPublicKeyFormat`
  Returns:
    DOCUMENT ME!

### getFormatType

    public java.lang.String getFormatType()

  DOCUMENT ME!

  Specified by:
    `getFormatType` in interface `SshPublicKeyFormat`
  Returns:
    DOCUMENT ME!

### getKeyBlob

    public byte[] getKeyBlob(byte[] formattedKey)
                      throws InvalidSshKeyException

  DOCUMENT ME!

  Specified by:
    `getKeyBlob` in interface `SshPublicKeyFormat`
  Parameters:
    `formattedKey` - DOCUMENT ME!
  Returns:
    DOCUMENT ME!
  Throws:
    `InvalidSshKeyException` - DOCUMENT ME!

### formatKey

    public byte[] formatKey(byte[] keyblob)

  DOCUMENT ME!

  Specified by:
    `formatKey` in interface `SshPublicKeyFormat`
  Parameters:
    `keyblob` - DOCUMENT ME!
  Returns:
    DOCUMENT ME!

### isFormatted

    public boolean isFormatted(byte[] formattedKey)

  DOCUMENT ME!

  Specified by:
    `isFormatted` in interface `SshPublicKeyFormat`
  Parameters:
    `formattedKey` - DOCUMENT ME!
  Returns:
    DOCUMENT ME!

### supportsAlgorithm

    public boolean supportsAlgorithm(java.lang.String algorithm)

  DOCUMENT ME!

  Specified by:
    `supportsAlgorithm` in interface `SshPublicKeyFormat`
  Parameters:
    `algorithm` - DOCUMENT ME!
  Returns:
    DOCUMENT ME!

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD