class KeyDataUtil {

    public static boolean isDirect(KeyData keyData) {
        return Optional.of(keyData).filter(k -> Objects.nonNull(k.getPrivateKey())).filter(HAS_PUBLIC_KEY).isPresent();
    }

    private  KeyDataUtil();

}