Class IdentityUtils

    • Method Detail

      • getUserHomeFolder

        public static Path getUserHomeFolder()
        Returns:
        The Path to the currently running user home
      • getIdentityFileName

        public static String getIdentityFileName​(String prefix,
                                                 String type,
                                                 String suffix)
        Parameters:
        prefix - The file name prefix - ignored if null/empty
        type - The identity type - ignored if null/empty
        suffix - The file name suffix - ignored if null/empty
        Returns:
        The identity file name or null if no name
      • createKeyPairProvider

        public static KeyPairProvider createKeyPairProvider​(Map<String,​KeyPair> ids,
                                                            boolean supportedOnly)
        Parameters:
        ids - A Map of the loaded identities where key=the identity type, value=the matching KeyPair - ignored if null/empty
        supportedOnly - If true then ignore identities that are not supported internally
        Returns:
        A KeyPair for the identities - null if no identities available (e.g., after filtering unsupported ones)
        See Also:
        BuiltinIdentities