Interface CredentialReader<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T read​(java.io.InputStream is, java.lang.String... params)
      Reads a credential object from an input stream.
      T read​(java.lang.String path, java.lang.String... params)
      Reads a credential object from a path.
    • Method Detail

      • read

        T read​(java.lang.String path,
               java.lang.String... params)
        throws java.io.IOException,
               java.security.GeneralSecurityException
        Reads a credential object from a path.
        Parameters:
        path - from which to read credential.
        params - Arbitrary string parameters, e.g. password, needed to read the credential.
        Returns:
        credential read from data at path.
        Throws:
        java.io.IOException - On IO errors.
        java.security.GeneralSecurityException - On errors with the credential data.
      • read

        T read​(java.io.InputStream is,
               java.lang.String... params)
        throws java.io.IOException,
               java.security.GeneralSecurityException
        Reads a credential object from an input stream.
        Parameters:
        is - input stream from which to read credential.
        params - Arbitrary string parameters, e.g. password, needed to read the credential.
        Returns:
        credential read from data in stream.
        Throws:
        java.io.IOException - On IO errors.
        java.security.GeneralSecurityException - On errors with the credential data.