| Modifier and Type | Field and Description |
|---|---|
| private final CallbackHandler | |
| private @Nullable PSQLException | |
| private final String | |
| private final KeyStore | |
| pack-priv boolean | |
| private final ResourceLock |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable String | chooseClientAlias(String[]
the key algorithm type name(s), ordered
with the most-preferred key type first. keyType, @Nullable Principal[] the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used. principals, @Nullable Socket the socket to be used for this connection. This
parameter can be null, which indicates that
implementations are free to select an alias applicable
to any socket. socket)Implements javax. Choose an alias to authenticate the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). |
| public @Nullable String | chooseServerAlias(String
the key algorithm type name. s, @Nullable Principal[] the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used. principals, @Nullable Socket the socket to be used for this connection. This
parameter can be null, which indicates that
implementations are free to select an alias applicable
to any socket. socket)Implements javax. Choose an alias to authenticate the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). |
| public @Nullable X509Certificate[] | getCertificateChain(String
the alias name alias)Implements javax. Returns the certificate chain associated with the given alias. |
| public @Nullable String[] | getClientAliases(String
the key algorithm type name keyType, @Nullable Principal[] the list of acceptable CA issuer subject names,
or null if it does not matter which issuers are used. principals)Implements javax. Get the matching aliases for authenticating the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). |
| public @Nullable PrivateKey | getPrivateKey(String
the alias name s)Implements javax. Returns the key associated with the given alias. |
| public @Nullable String[] | getServerAliases(String
the key algorithm type name s, @Nullable Principal[] the list of acceptable CA issuer subject names
or null if it does not matter which issuers are used. principals)Implements javax. Get the matching aliases for authenticating the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). |
| private void | |
| public void | throwKeyManagerException()
getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored
in |
| cbh | back to summary |
|---|---|
| private final CallbackHandler cbh | |
| error | back to summary |
|---|---|
| private @Nullable PSQLException error | |
| keyfile | back to summary |
|---|---|
| private final String keyfile | |
| keyStore | back to summary |
|---|---|
| private final KeyStore keyStore | |
| keystoreLoaded | back to summary |
|---|---|
| pack-priv boolean keystoreLoaded | |
| lock | back to summary |
|---|---|
| private final ResourceLock lock | |
| PKCS12KeyManager | back to summary |
|---|---|
| public PKCS12KeyManager(String pkcsFile, CallbackHandler cbh) throws PSQLException | |
| chooseClientAlias | back to summary |
|---|---|
| public @Nullable String chooseClientAlias(String[] keyType, @Nullable Principal[] principals, @Nullable Socket socket) Implements javax. Doc from javax. Choose an alias to authenticate the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
| |
| chooseServerAlias | back to summary |
|---|---|
| public @Nullable String chooseServerAlias(String s, @Nullable Principal[] principals, @Nullable Socket socket) Implements javax. Doc from javax. Choose an alias to authenticate the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any).
| |
| getCertificateChain | back to summary |
|---|---|
| public @Nullable X509Certificate[] getCertificateChain(String alias) Implements javax. Doc from javax. Returns the certificate chain associated with the given alias.
| |
| getClientAliases | back to summary |
|---|---|
| public @Nullable String[] getClientAliases(String keyType, @Nullable Principal[] principals) Implements javax. Doc from javax. Get the matching aliases for authenticating the client side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). | |
| getPrivateKey | back to summary |
|---|---|
| public @Nullable PrivateKey getPrivateKey(String s) Implements javax. Doc from javax. Returns the key associated with the given alias.
| |
| getServerAliases | back to summary |
|---|---|
| public @Nullable String[] getServerAliases(String s, @Nullable Principal[] principals) Implements javax. Doc from javax. Get the matching aliases for authenticating the server side of a secure socket given the public key type and the list of certificate issuer authorities recognized by the peer (if any). | |
| loadKeyStore | back to summary |
|---|---|
| private void loadKeyStore() throws Exception | |
| throwKeyManagerException | back to summary |
|---|---|
| public void throwKeyManagerException() throws PSQLException getCertificateChain and getPrivateKey cannot throw exceptions, therefore any exception is stored
in
| |