Skip to content

Commit

Permalink
Improved comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Oct 22, 2024
1 parent dfb6078 commit 3e39979
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ protected AbstractAS4CryptoFactory ()
* @return The underlying private key entry from the keystore or
* <code>null</code> if none is available (the reasons depend on the
* used implementation).
* @see #getKeyStore()
* @see #getKeyAlias()
* @see #getKeyPasswordPerAlias(String)
*/
@Nullable
public KeyStore.PrivateKeyEntry getPrivateKeyEntry ()
Expand All @@ -52,14 +55,15 @@ public KeyStore.PrivateKeyEntry getPrivateKeyEntry ()
return KeyStoreHelper.loadPrivateKey (aKeyStore,
"phase4 CryptoFactory KeyStore",
sKeyAlias,
sKeyPassword == null ? ArrayHelper.EMPTY_CHAR_ARRAY : sKeyPassword
.toCharArray ())
sKeyPassword == null ? ArrayHelper.EMPTY_CHAR_ARRAY
: sKeyPassword.toCharArray ())
.getKeyEntry ();
}

/**
* @return The public certificate of the private key entry or
* <code>null</code> if the private key entry could not be loaded.
* @see #getPrivateKeyEntry()
*/
@Nullable
public X509Certificate getCertificate ()
Expand Down

0 comments on commit 3e39979

Please sign in to comment.