Class 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.security.Provider

        java.security.Provider.Service
    • Field Summary

      • Fields inherited from class java.util.Properties

        defaults
    • 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
      • Methods inherited from class java.util.Properties

        clone, contains, containsKey, containsValue, getProperty, isEmpty, list, list, load, loadFromXML, propertyNames, rehash, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        equals in class java.util.Properties
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map<java.lang.Object,​java.lang.Object>
        Overrides:
        hashCode in class java.util.Properties