Interface PrivateKeyEntryResolver

    • Method Detail

      • resolve

        java.security.PrivateKey resolve​(SessionContext session,
                                         java.lang.String keyType,
                                         byte[] keyData)
                                  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 or session unknown).
        keyType - The OpenSSH reported key type
        keyData - The OpenSSH encoded key data
        Returns:
        The extracted PrivateKey - ignored if null
        Throws:
        java.io.IOException - If failed to parse the key data
        java.security.GeneralSecurityException - If failed to generate the key