Class ShamirsLoadParameter

    • Constructor Detail

      • ShamirsLoadParameter

        public ShamirsLoadParameter​(File file,
                                    ShamirsProtection shamirsProtection)
        The given File object denotes the location of a PKCS#12 keystore within the file system.
        Parameters:
        file - a PKCS#12 keystore
        shamirsProtection - the parameter used to protect keystore data
      • ShamirsLoadParameter

        public ShamirsLoadParameter​(InputStream inputStream,
                                    ShamirsProtection shamirsProtection)
        The given InputStream object will be used to load a PKCS#12 keystore.
        Parameters:
        inputStream - provides data to load a PKCS#12 keystore
        shamirsProtection - the parameter used to protect keystore data
      • ShamirsLoadParameter

        public ShamirsLoadParameter​(OutputStream outputStream,
                                    ShamirsProtection shamirsProtection)
        The given OutputStream object will be used to store a PKCS#12 keystore.
        Parameters:
        outputStream - receives data to store a PKCS#12 keystore
        shamirsProtection - the parameter used to protect keystore data
    • Method Detail

      • getFile

        public Optional<File> getFile()
        Returns the KeyStore file if applicable, otherwise the Optional is empty.
        Returns:
        an optional File instance
      • getName

        public String getName()
        Returns the file name of the KeyStore if applicable, otherwise the string representation from the hashcode of the given InputStream or OutputStream.
        Returns:
        the file name of the KeyStore if applicable
      • getInputStream

        public Optional<InputStream> getInputStream()
        Returns the InputStream providing the data of the PKCS#12 keystore, if applicable.
        Returns:
        an optional InputStream instance
      • getOutputStream

        public Optional<OutputStream> getOutputStream()
        Returns the OutputStream instance receiving the data of the PKCS#12 keystore, if applicable.
        Returns:
        an optional OutputStream instance