|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.adamcin.httpsig.ssh.jce.SSHKey
public final class SSHKey
Default Key implementation for OpenSSH-compliant keys (RSA/DSA)
| Constructor Summary | |
|---|---|
SSHKey(KeyFormat keyFormat,
KeyPair keyPair)
|
|
SSHKey(KeyFormat keyFormat,
PublicKey publicKey,
PrivateKey privateKey)
|
|
| Method Summary | |
|---|---|
boolean |
canSign()
|
boolean |
canVerify()
|
boolean |
equals(Object o)
|
Set<Algorithm> |
getAlgorithms()
|
String |
getFingerprint()
|
String |
getId()
|
int |
hashCode()
|
byte[] |
sign(Algorithm algorithm,
byte[] challengeHash)
|
boolean |
verify(Algorithm algorithm,
byte[] challengeHash,
byte[] signatureBytes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSHKey(KeyFormat keyFormat,
KeyPair keyPair)
public SSHKey(KeyFormat keyFormat,
PublicKey publicKey,
PrivateKey privateKey)
| Method Detail |
|---|
public String getId()
getId in interface Keypublic String getFingerprint()
getFingerprint in interface FingerprintableKeypublic Set<Algorithm> getAlgorithms()
getAlgorithms in interface Keypublic boolean canVerify()
canVerify in interface Keypublic boolean canSign()
canSign in interface Key
public boolean verify(Algorithm algorithm,
byte[] challengeHash,
byte[] signatureBytes)
verify in interface Key
public byte[] sign(Algorithm algorithm,
byte[] challengeHash)
sign in interface Keypublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||