public class SSHFTPPublicKey
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
IETF_SECSH_FORMAT
Specifies the IETF SECSH format.
|
static int |
OPENSSH_FORMAT
Specifies the OpenSSH format.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getAlgorithmName()
Returns the name of the algorithm (either DSA or RSA).
|
int |
getBitLength()
Returns the bit-length of the key.
|
java.lang.String |
getFingerprint()
Returns the finger-print of the key.
|
byte[] |
getKeyData()
Returns the raw data of the key.
|
int |
hashCode()
Returns a hash code value for the object.
|
int |
write(java.io.OutputStream outStr,
int formatCode)
Writes a printable representation of the key to the given
stream.
|
public static final int OPENSSH_FORMAT
public static final int IETF_SECSH_FORMAT
public java.lang.String getAlgorithmName()
public int getBitLength()
public byte[] getKeyData()
public java.lang.String getFingerprint()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
true
false
public int hashCode()
hashCode
in class java.lang.Object
public int write(java.io.OutputStream outStr, int formatCode) throws SSHFTPException, java.io.IOException
OPENSSH_FORMAT
or IETF_SECSH_FORMAT
.
The stream is not closed.outStr
- OutputStream to which to write the key.formatCode
- Format to use (either OPENSSH_FORMAT
or IETF_SECSH_FORMAT
).SSHFTPException
- Thrown if the format-code is not OPENSSH_FORMAT
or IETF_SECSH_FORMAT
.java.io.IOException
- Thrown if there was an error while writing to the stream.Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.