Package com.yubico.yubikit.piv.jca
Class PivProvider
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- java.security.Provider
-
- com.yubico.yubikit.piv.jca.PivProvider
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
public class PivProvider extends java.security.Provider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PivProvider(com.yubico.yubikit.core.util.Callback<com.yubico.yubikit.core.util.Callback<com.yubico.yubikit.core.util.Result<PivSession,java.lang.Exception>>> sessionRequester)
Creates a Security Provider capable of using a PivSession with a YubiKey to perform key operations.PivProvider(PivSession session)
Creates a Security Provider wrapping an instance of a PivSession.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
-
Methods inherited from class java.security.Provider
clear, compute, computeIfAbsent, computeIfPresent, configure, elements, entrySet, forEach, get, getInfo, getName, getOrDefault, getProperty, getService, getServices, getVersion, getVersionStr, isConfigured, keys, keySet, load, merge, put, putAll, putIfAbsent, putService, remove, remove, removeService, replace, replace, replaceAll, toString, values
-
-
-
-
Constructor Detail
-
PivProvider
public PivProvider(PivSession session)
Creates a Security Provider wrapping an instance of a PivSession.The PivSession must be active for as long as the Provider will be used.
- Parameters:
session
- A PivSession to use for YubiKey interaction.
-
PivProvider
public PivProvider(com.yubico.yubikit.core.util.Callback<com.yubico.yubikit.core.util.Callback<com.yubico.yubikit.core.util.Result<PivSession,java.lang.Exception>>> sessionRequester)
Creates a Security Provider capable of using a PivSession with a YubiKey to perform key operations.- Parameters:
sessionRequester
- a mechanism for the Provider to get an instance of a PivSession.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
equals
in classjava.util.Properties
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
hashCode
in classjava.util.Properties
-
-