Class ApplicationSession<T extends ApplicationSession<T>>
java.lang.Object
com.yubico.yubikit.core.application.ApplicationSession<T>
- Type Parameters:
T
- the type of the subclass
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public abstract class ApplicationSession<T extends ApplicationSession<T>>
extends java.lang.Object
implements java.io.Closeable
A base class for Sessions with a YubiKey.
Subclasses should use their own type as the parameter T:
class FooSession extends ApplicationSession<FooSession>
-
Constructor Summary
Constructors Constructor Description ApplicationSession()
-
Method Summary
-
Constructor Details
-
ApplicationSession
public ApplicationSession()
-
-
Method Details
-
getVersion
Get the version of the Application from the YubiKey. This is typically the same as the YubiKey firmware, but can be versioned separately as well.- Returns:
- the Application version
-
supports
Check if a Feature is supported by the YubiKey.- Parameters:
feature
- the Feature to check support for.- Returns:
- true if the Feature is supported, false if not.
-
require
-