Interface ClientIdentityLoader


  • public interface ClientIdentityLoader
    • Method Detail

      • isValidLocation

        boolean isValidLocation​(NamedResource location)
                         throws java.io.IOException
        Parameters:
        location - The identity key-pair location - the actual meaning (file, URL, etc.) depends on the implementation.
        Returns:
        true if it represents a valid location - the actual meaning of the validity depends on the implementation
        Throws:
        java.io.IOException - If failed to validate the location
      • loadClientIdentities

        java.lang.Iterable<java.security.KeyPair> loadClientIdentities​(SessionContext session,
                                                                       NamedResource location,
                                                                       FilePasswordProvider provider)
                                                                throws java.io.IOException,
                                                                       java.security.GeneralSecurityException
        Parameters:
        session - The SessionContext for invoking this load command - may be null if not invoked within a session context (e.g., offline tool).
        location - The identity key-pair location - the actual meaning (file, URL, etc.) depends on the implementation.
        provider - The FilePasswordProvider to consult if the location contains an encrypted identity
        Returns:
        The loaded KeyPair - null if location is empty and it is OK that it does not exist
        Throws:
        java.io.IOException - If failed to access / process the remote location
        java.security.GeneralSecurityException - If failed to convert the contents into a valid identity