public SecurityTokenServiceConfig(ConnectionConfig connConfig,X509Certificate[] trustedIssuerCertificates,ExecutorService executorService,HolderOfKeyConfig holderOfKeyConfig){
  ValidateUtil.validateNotNull(connConfig,"STS connection configuration");
  this.connConfig=connConfig;
  this.trustedIssuerCertificates=trustedIssuerCertificates;
  this.executorService=(executorService != null) ? executorService : Executors.newSingleThreadExecutor();
  this.holderOfKeyConfig=holderOfKeyConfig;
}

public SecurityTokenServiceConfig ( ConnectionConfig connConfig , X509Certificate [ ] trustedIssuerCertificates , ExecutorService executorService , HolderOfKeyConfig holderOfKeyConfig ) { ValidateUtil . validateNotNull ( connConfig , "STS connection configuration" ) ; this . connConfig = connConfig ; this . trustedIssuerCertificates = trustedIssuerCertificates ; this . executorService = ( executorService != null ) ? executorService : Executors . newSingleThreadExecutor ( ) ; this . holderOfKeyConfig = holderOfKeyConfig ; }
creates sts configuration object suitable for holder of key confirmation type . < br > if the executor service is null a default single threaded executor will be created .
