All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deephaven.ssl.config.Identity Maven / Gradle / Ivy

There is a newer version: 0.36.1
Show newest version
/**
 * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending
 */
package io.deephaven.ssl.config;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

/**
 * The identity material configuration.
 *
 * @see IdentityKeyStore
 * @see IdentityPrivateKey
 * @see IdentityProperties
 * @see IdentityList
 */
@JsonTypeInfo(
        use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.PROPERTY,
        property = "type")
@JsonSubTypes({
        @JsonSubTypes.Type(value = IdentityKeyStore.class, name = "keystore"),
        @JsonSubTypes.Type(value = IdentityPrivateKey.class, name = "privatekey"),
        @JsonSubTypes.Type(value = IdentityProperties.class, name = "properties"),
        @JsonSubTypes.Type(value = IdentityList.class, name = "list"),

})
public interface Identity {
    , T> T walk(V visitor);

    interface Visitor {
        T visit(IdentityKeyStore keyStore);

        T visit(IdentityPrivateKey privateKey);

        T visit(IdentityProperties properties);

        T visit(IdentityList list);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy