-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a6747d
commit f31d090
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...tp/src/main/java/org/apache/synapse/transport/nhttp/config/SslSenderTrustStoreHolder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package org.apache.synapse.transport.nhttp.config; | ||
|
||
/** | ||
* A SSL Sender TrustStore Holder class to store the client trust store's configurable details. | ||
*/ | ||
public class SslSenderTrustStoreHolder { | ||
|
||
private static volatile SslSenderTrustStoreHolder instance; | ||
|
||
private SslSenderTrustStoreHolder() {} | ||
|
||
private String location; | ||
private String password; | ||
private String type; | ||
|
||
public static SslSenderTrustStoreHolder getInstance() { | ||
|
||
if (instance == null) { | ||
synchronized (TrustStoreHolder.class) { | ||
if (instance == null) { | ||
instance = new SslSenderTrustStoreHolder(); | ||
} | ||
} | ||
} | ||
return instance; | ||
} | ||
|
||
public void setLocation(String location) { | ||
this.location = location; | ||
} | ||
|
||
public String getLocation() { | ||
return this.location; | ||
} | ||
|
||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
|
||
public String getPassword() { | ||
return this.password; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getType() { | ||
return this.type; | ||
} | ||
} |