Top Description Fields Constructors Methods
org.apache.sshd.server.auth.pubkey

public Class KeySetPublickeyAuthenticator

extends AbstractLoggingBean
implements PublickeyAuthenticator
Class Inheritance
All Implemented Interfaces
org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator
Imports
java.security.PublicKey, java.util.Collection, .Collections, .Objects, org.apache.sshd.common.config.keys.KeyUtils, org.apache.sshd.common.util.GenericUtils, org.apache.sshd.common.util.logging.AbstractLoggingBean, org.apache.sshd.server.session.ServerSession

Checks against a Collection of PublicKeys

Field Summary

Modifier and TypeField and Description
private final Object
private final Collection<? extends PublicKey>
Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
authenticate(String
the username
username
,
PublicKey
the key
key
,
ServerSession
the server session
session
)

Implements org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator.authenticate.

Check the validity of a public key.

public boolean
authenticate(String username, PublicKey key, ServerSession session, Collection<? extends PublicKey> keys)

public Object

Returns:

Some kind of mnemonic identifier for the authenticator - used also in toString()
getId
()

public final Collection<? extends PublicKey>
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.sshd.common.util.logging.AbstractLoggingBean:
debugdebugdebugdebugdebugerrorerrorerrorerrorerrorgetSimplifiedLoggerinfoinfowarnwarnwarnwarnwarnwarnwarnwarn

Field Detail

idback to summary
private final Object id
keySetback to summary
private final Collection<? extends PublicKey> keySet

Constructor Detail

KeySetPublickeyAuthenticatorback to summary
public KeySetPublickeyAuthenticator(Object id, Collection<? extends PublicKey> keySet)

Method Detail

authenticateback to summary
public boolean authenticate(String username, PublicKey key, ServerSession session)

Implements org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator.authenticate.

Doc from org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator.authenticate.

Check the validity of a public key.

Parameters
username:String

the username

key:PublicKey

the key

session:ServerSession

the server session

Returns:boolean

a boolean indicating if authentication succeeded or not

Annotations
@Override
authenticateback to summary
public boolean authenticate(String username, PublicKey key, ServerSession session, Collection<? extends PublicKey> keys)
getIdback to summary
public Object getId()
Returns:Object

Some kind of mnemonic identifier for the authenticator - used also in toString()

getKeySetback to summary
public final Collection<? extends PublicKey> getKeySet()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override