Package ghidra.framework.remote
Class SSHSignatureCallback
- java.lang.Object
- 
- ghidra.framework.remote.SSHSignatureCallback
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- javax.security.auth.callback.Callback
 
 public class SSHSignatureCallback extends java.lang.Object implements javax.security.auth.callback.Callback, java.io.SerializableSSHSignatureCallbackprovides a Callback implementation used to perform SSH authentication. This callback is instantiated by the server with a random token which must be signed using the user's SSH private key.It is the responsibility of the callback handler to invoke the sign method and return this object in response to the callback. - See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static longserialVersionUID
 - 
Constructor SummaryConstructors Constructor Description SSHSignatureCallback(byte[] token, byte[] serverSignature)Construct callback with a random token to be signed by the client.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getServerSignature()byte[]getSignature()byte[]getToken()booleanisSigned()voidsign(java.lang.Object sshPrivateKey)Sign this challenge with the specified SSH private key.
 
- 
- 
- 
Field Detail- 
serialVersionUIDpublic static final long serialVersionUID - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getTokenpublic byte[] getToken() 
 - 
getSignaturepublic byte[] getSignature() 
 - 
getServerSignaturepublic byte[] getServerSignature() 
 - 
isSignedpublic boolean isSigned() 
 - 
signpublic void sign(java.lang.Object sshPrivateKey) throws java.io.IOExceptionSign this challenge with the specified SSH private key.- Parameters:
- sshPrivateKey- RSAPrivateKey or DSAPrivateKey
- Throws:
- java.io.IOException- if signature generation failed
- See Also:
- RSAPrivateKey,- DSAPrivateKey
 
 
- 
 
-