public class SshRsaPublicKey extends SshPublicKey
Constructor and Description |
---|
SshRsaPublicKey(byte[] encoded)
Creates a new SshRsaPublicKey object.
|
SshRsaPublicKey(java.security.interfaces.RSAPublicKey key)
Creates a new SshRsaPublicKey object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithmName() |
int |
getBitLength() |
byte[] |
getEncoded() |
boolean |
verifySignature(byte[] signature,
byte[] data) |
equals, getFingerprint, hashCode
public SshRsaPublicKey(java.security.interfaces.RSAPublicKey key)
key
- public SshRsaPublicKey(byte[] encoded) throws InvalidSshKeyException
encoded
- InvalidSshKeyException
public java.lang.String getAlgorithmName()
getAlgorithmName
in class SshPublicKey
public int getBitLength()
getBitLength
in class SshPublicKey
public byte[] getEncoded()
getEncoded
in class SshPublicKey
public boolean verifySignature(byte[] signature, byte[] data) throws InvalidSshKeySignatureException
verifySignature
in class SshPublicKey
signature
- data
- InvalidSshKeySignatureException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.