Package net.schmizz.sshj.userauth.method
Class AuthGssApiWithMic
java.lang.Object
net.schmizz.sshj.userauth.method.AbstractAuthMethod
net.schmizz.sshj.userauth.method.AuthGssApiWithMic
- All Implemented Interfaces:
SSHPacketHandler
,AuthMethod
Implements authentication by GSS-API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
PrivilegedExceptionAction to be executed within the given LoginContext for initializing the GSSContext. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LoginContext
private final GSSManager
private GSSContext
Fields inherited from class net.schmizz.sshj.userauth.method.AbstractAuthMethod
log, params
-
Constructor Summary
ConstructorsConstructorDescriptionAuthGssApiWithMic
(LoginContext loginContext, List<Oid> mechanismOids) AuthGssApiWithMic
(LoginContext loginContext, List<Oid> mechanismOids, GSSManager manager) -
Method Summary
Methods inherited from class net.schmizz.sshj.userauth.method.AbstractAuthMethod
getName, init, makeAccountResource, request, setLoggerFactory, shouldRetry
-
Field Details
-
loginContext
-
mechanismOids
-
manager
-
secContext
-
-
Constructor Details
-
AuthGssApiWithMic
-
AuthGssApiWithMic
-
-
Method Details
-
buildReq
Description copied from class:AbstractAuthMethod
Builds aSSHPacket
containing the fields common to all authentication method. Method-specific fields can further be put into this buffer.- Overrides:
buildReq
in classAbstractAuthMethod
- Throws:
UserAuthException
-
sendToken
- Throws:
TransportException
-
handleContextInitialization
private void handleContextInitialization(SSHPacket buf) throws UserAuthException, TransportException - Throws:
UserAuthException
TransportException
-
handleTokenFromServer
- Throws:
UserAuthException
-
generateMIC
- Throws:
UserAuthException
-
handle
Description copied from interface:SSHPacketHandler
Delegate handling of some SSH packet to this object.- Specified by:
handle
in interfaceSSHPacketHandler
- Overrides:
handle
in classAbstractAuthMethod
- Parameters:
cmd
- the SSHmessage identifier
buf
-SSHPacket
containing rest of the request- Throws:
UserAuthException
TransportException
-