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 classPrivilegedExceptionAction to be executed within the given LoginContext for initializing the GSSContext. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LoginContextprivate final GSSManagerprivate GSSContextFields inherited from class 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 AbstractAuthMethod
getName, init, makeAccountResource, request, setLoggerFactory, shouldRetry
-
Field Details
-
loginContext
-
mechanismOids
-
manager
-
secContext
-
-
Constructor Details
-
AuthGssApiWithMic
-
AuthGssApiWithMic
-
-
Method Details
-
buildReq
Description copied from class:AbstractAuthMethodBuilds aSSHPacketcontaining the fields common to all authentication method. Method-specific fields can further be put into this buffer.- Overrides:
buildReqin classAbstractAuthMethod- Throws:
UserAuthException
-
sendToken
- Throws:
TransportException
-
handleContextInitialization
private void handleContextInitialization(SSHPacket buf) throws UserAuthException, TransportException - Throws:
UserAuthExceptionTransportException
-
handleTokenFromServer
- Throws:
UserAuthException
-
generateMIC
- Throws:
UserAuthException
-
handle
Description copied from interface:SSHPacketHandlerDelegate handling of some SSH packet to this object.- Specified by:
handlein interfaceSSHPacketHandler- Overrides:
handlein classAbstractAuthMethod- Parameters:
cmd- the SSHmessage identifierbuf-SSHPacketcontaining rest of the request- Throws:
UserAuthExceptionTransportException
-