Interface AuthenticationIdentitiesProvider

    • Field Detail

      • PASSWORD_IDENTITY_COMPARATOR

        static final java.util.Comparator<java.lang.Object> PASSWORD_IDENTITY_COMPARATOR
        Compares 2 password identities - returns zero ONLY if both compared objects are Strings and equal to each other
      • KEYPAIR_IDENTITY_COMPARATOR

        static final java.util.Comparator<java.lang.Object> KEYPAIR_IDENTITY_COMPARATOR
        Compares 2 KeyPair identities - returns zero ONLY if both compared objects are KeyPairs and equal to each other
    • Method Detail

      • loadIdentities

        java.lang.Iterable<?> loadIdentities​(SessionContext session)
                                      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).
        Returns:
        All the currently available identities - passwords, keys, etc...
        Throws:
        java.io.IOException - If failed to load the identities
        java.security.GeneralSecurityException - If some security issue with the identities (e.g., keys)
      • findIdentityIndex

        static int findIdentityIndex​(java.util.List<?> identities,
                                     java.util.Comparator<? super java.lang.Object> comp,
                                     java.lang.Object target)