Class StoreConfigurationProperties.Pkcs11ConfigurationProperties.Pkcs11SettingsProperties

java.lang.Object
se.swedenconnect.security.credential.config.properties.StoreConfigurationProperties.Pkcs11ConfigurationProperties.Pkcs11SettingsProperties
All Implemented Interfaces:
StoreConfiguration.Pkcs11Configuration.Pkcs11Settings
Enclosing class:
StoreConfigurationProperties.Pkcs11ConfigurationProperties

public static class StoreConfigurationProperties.Pkcs11ConfigurationProperties.Pkcs11SettingsProperties extends Object implements StoreConfiguration.Pkcs11Configuration.Pkcs11Settings
Custom PKCS#11 settings.
Author:
Martin Lindström
  • Constructor Details

    • Pkcs11SettingsProperties

      public Pkcs11SettingsProperties()
  • Method Details

    • getLibrary

      @Nullable public String getLibrary()
      Gets the PKCS#11 library path.
      Returns:
      the library path
    • setLibrary

      public void setLibrary(@Nullable String library)
      Assigns the PKCS#11 library path.
      Parameters:
      library - the library path
    • getName

      @Nullable public String getName()
      Gets the name of the PKCS#11 slot.
      Returns:
      the slot name
    • setName

      public void setName(@Nullable String name)
      Assigns the name of the PKCS#11 slot.
      Parameters:
      name - the slot name
    • getSlot

      @Nullable public String getSlot()
      Gets the slot number/id to use.
      Returns:
      the slot number/id
    • setSlot

      public void setSlot(@Nullable String slot)
      Assigns the slot number/id to use.
      Parameters:
      slot - the slot number/id
    • getSlotListIndex

      @Nullable public Integer getSlotListIndex()
      Gets the slot index to use.
      Returns:
      the slot index
    • setSlotListIndex

      public void setSlotListIndex(@Nullable Integer slotListIndex)
      Assigns the slot index to use.
      Parameters:
      slotListIndex - the slot index
    • library

      public String library()
      The PKCS#11 library path.
      Specified by:
      library in interface StoreConfiguration.Pkcs11Configuration.Pkcs11Settings
      Returns:
      the PKCS#11 library path
    • name

      public String name()
      The name of the PKCS#11 slot.
      Specified by:
      name in interface StoreConfiguration.Pkcs11Configuration.Pkcs11Settings
      Returns:
      the name of the PKCS#11 slot
    • slot

      public Optional<String> slot()
      The slot number/id to use.
      Specified by:
      slot in interface StoreConfiguration.Pkcs11Configuration.Pkcs11Settings
      Returns:
      slot number/id to use
    • slotListIndex

      public Optional<Integer> slotListIndex()
      The slot index to use.
      Specified by:
      slotListIndex in interface StoreConfiguration.Pkcs11Configuration.Pkcs11Settings
      Returns:
      the slot index to use
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object