Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.yammer.dropwizard.config;
  
  
  import java.io.File;
 import java.net.URI;
 import java.util.List;
 
 import static com.google.common.base.Preconditions.checkNotNull;
 
 @SuppressWarnings("UnusedDeclaration")
 public class SslConfiguration {
     @NotNull
     @JsonProperty
     private Optional<FilekeyStore = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<StringkeyStorePassword = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<StringkeyManagerPassword = Optional.absent();
 
     @NotEmpty
     @JsonProperty
     private String keyStoreType = "JKS";
 
     @NotNull
     @JsonProperty
     private Optional<FiletrustStore = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<StringtrustStorePassword = Optional.absent();
 
     @NotEmpty
     @JsonProperty
     private String trustStoreType = "JKS";
 
     @NotNull
     @JsonProperty
     private Optional<BooleanneedClientAuth = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<BooleanwantClientAuth = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<StringcertAlias = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<BooleanallowRenegotiate = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<FilecrlPath = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<BooleancrldpEnabled = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<BooleanocspEnabled = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<IntegermaxCertPathLength = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<URIocspResponderUrl = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<StringjceProvider = Optional.absent();
 
     @NotNull
     @JsonProperty
     private Optional<BooleanvalidatePeers = Optional.absent();
 
     @NotEmpty
     @JsonProperty
     private ImmutableList<StringsupportedProtocols = ImmutableList.of("SSLv3",
                                                                         "TLSv1",
                                                                         "TLSv1.1",
                                                                         "TLSv1.2");
 
     public String getKeyStoreType() {
         return ;
     }
 
    public void setKeyStoreType(String keyStoreType) {
        this. = checkNotNull(keyStoreType);
    }
        return ;
    }
    public void setSupportedProtocols(List<Stringprotocols) {
        this. = ImmutableList.copyOf(protocols);
    }
    public String getTrustStoreType() {
        return ;
    }
    public void setTrustStoreType(String trustStoreType) {
        this. = checkNotNull(trustStoreType);
    }
    public Optional<FilegetKeyStore() {
        return ;
    }
    public void setKeyStore(Optional<FilekeyStore) {
        this. = keyStore;
    }
    public Optional<StringgetKeyStorePassword() {
        return ;
    }
    public void setKeyStorePassword(Optional<StringkeyStorePassword) {
        this. = keyStorePassword;
    }
        return ;
    }
    public void setKeyManagerPassword(Optional<StringkeyManagerPassword) {
        this. = keyManagerPassword;
    }
    public Optional<FilegetTrustStore() {
        return ;
    }
    public void setTrustStore(Optional<FiletrustStore) {
        this. = trustStore;
    }
        return ;
    }
    public void setTrustStorePassword(Optional<StringtrustStorePassword) {
        this. = trustStorePassword;
    }
    public Optional<BooleangetNeedClientAuth() {
        return ;
    }
    public void setNeedClientAuth(Optional<BooleanneedClientAuth) {
        this. = needClientAuth;
    }
    public Optional<BooleangetWantClientAuth() {
        return ;
    }
    public void setWantClientAuth(Optional<BooleanwantClientAuth) {
        this. = wantClientAuth;
    }
    public Optional<StringgetCertAlias() {
        return ;
    }
    public void setCertAlias(Optional<StringcertAlias) {
        this. = certAlias;
    }
    public Optional<BooleangetAllowRenegotiate() {
        return ;
    }
    public void setAllowRenegotiate(Optional<BooleanallowRenegotiate) {
        this. = allowRenegotiate;
    }
    public Optional<FilegetCrlPath() {
        return ;
    }
    public void setCrlPath(Optional<FilecrlPath) {
        this. = crlPath;
    }
    public Optional<BooleangetCrldpEnabled() {
        return ;
    }
    public void setCrldpEnabled(Optional<BooleancrldpEnabled) {
        this. = crldpEnabled;
    }
    public Optional<BooleangetOcspEnabled() {
        return ;
    }
    public void setOcspEnabled(Optional<BooleanocspEnabled) {
        this. = ocspEnabled;
    }
        return ;
    }
    public void setMaxCertPathLength(Optional<IntegermaxCertPathLength) {
        this. = maxCertPathLength;
    }
    public Optional<URIgetOcspResponderUrl() {
        return ;
    }
    public void setOcspResponderUrl(Optional<URIocspResponderUrl) {
        this. = ocspResponderUrl;
    }
    public Optional<StringgetJceProvider() {
        return ;
    }
    public void setJceProvider(Optional<StringjceProvider) {
        this. = jceProvider;
    }
    public Optional<BooleangetValidatePeers() {
        return ;
    }
    public void setValidatePeers(Optional<BooleanvalidatePeers) {
        this. = validatePeers;
    }
New to GrepCode? Check out our FAQ X