class KeyDataConfig {

    public String getValue() {
        return Optional.ofNullable(privateKeyData)
                .map(PrivateKeyData::getValue)
                .orElse(null);  
    }

    public  KeyDataConfig(PrivateKeyData privateKeyData, PrivateKeyType type);
    public  KeyDataConfig();

}