@Test public void isFilesystem() { KeyData keyData = new KeyData(); keyData.setPublicKeyPath(mock(Path.class)); keyData.setPrivateKeyPath(mock(Path.class)); assertThat(KeyDataUtil.isFileSystem(keyData)).isTrue(); }
public static boolean isFileSystem(KeyData keyData) { return Stream.of(keyData.getPrivateKeyPath(), keyData.getPublicKeyPath()).allMatch(Objects::nonNull); }
KeyDataUtil { public static boolean isFileSystem(KeyData keyData) { return Stream.of(keyData.getPrivateKeyPath(), keyData.getPublicKeyPath()).allMatch(Objects::nonNull); } }
KeyDataUtil { public static boolean isFileSystem(KeyData keyData) { return Stream.of(keyData.getPrivateKeyPath(), keyData.getPublicKeyPath()).allMatch(Objects::nonNull); } private  KeyDataUtil(); }
KeyDataUtil { public static boolean isFileSystem(KeyData keyData) { return Stream.of(keyData.getPrivateKeyPath(), keyData.getPublicKeyPath()).allMatch(Objects::nonNull); } private  KeyDataUtil(); static Class<? extends ConfigKeyPair> getKeyPairTypeFor(KeyData keyData); static boolean isLocked(KeyData keyData); static boolean isDirect(KeyData keyData); static boolean isInline(KeyData keyData); static boolean isAzure(KeyData keyData); static boolean isHashicorp(KeyData keyData); static boolean isAws(KeyData keyData); static boolean isFileSystem(KeyData keyData); static boolean isUnsupported(KeyData keyData); static ConfigKeyPair unmarshal(final KeyData keyData, final KeyEncryptor keyEncryptor); static KeyData marshal(final ConfigKeyPair keyPair); }
KeyDataUtil { public static boolean isFileSystem(KeyData keyData) { return Stream.of(keyData.getPrivateKeyPath(), keyData.getPublicKeyPath()).allMatch(Objects::nonNull); } private  KeyDataUtil(); static Class<? extends ConfigKeyPair> getKeyPairTypeFor(KeyData keyData); static boolean isLocked(KeyData keyData); static boolean isDirect(KeyData keyData); static boolean isInline(KeyData keyData); static boolean isAzure(KeyData keyData); static boolean isHashicorp(KeyData keyData); static boolean isAws(KeyData keyData); static boolean isFileSystem(KeyData keyData); static boolean isUnsupported(KeyData keyData); static ConfigKeyPair unmarshal(final KeyData keyData, final KeyEncryptor keyEncryptor); static KeyData marshal(final ConfigKeyPair keyPair);  }