Merge pull request #71 from cconlon/javaDocFixes

JNI/JCE: fix Javadoc warnings with newer Java versions
pull/72/head
Daniel Pouzzner 2024-03-30 02:57:42 -04:00 committed by GitHub
commit 430b8b7503
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 14 additions and 6 deletions

View File

@ -73,6 +73,9 @@ public class WolfCryptPKIXCertPathValidator extends CertPathValidatorSpi {
private WolfCryptDebug debug;
/**
* Create new WolfCryptPKIXCertPathValidator object.
*/
public WolfCryptPKIXCertPathValidator() {
if (debug.DEBUG) {
log("created new WolfCryptPKIXCertPathValidator");

View File

@ -28,7 +28,7 @@ public class AesGcm extends NativeStruct {
private WolfCryptState state = WolfCryptState.UNINITIALIZED;
/* Lock around object state */
/** Lock around object state */
protected final Object stateLock = new Object();
/* Lock around native Aes poiner use */
@ -51,6 +51,11 @@ public class AesGcm extends NativeStruct {
init();
}
/**
* Create and initialize new AesGcm object using provided key.
*
* @param key AES-GCM key to be used with this object
*/
public AesGcm(byte[] key) {
init();
setKey(key);

View File

@ -31,7 +31,7 @@ public class Dh extends NativeStruct {
private byte[] publicKey = null;
private int pSize = 0;
/* Lock around object state */
/** Lock around object state */
protected final Object stateLock = new Object();
/**

View File

@ -38,7 +38,7 @@ public class Ecc extends NativeStruct {
/* used with native wc_ecc_set_rng() */
private Rng rng = null;
/* Lock around object state */
/** Lock around object state */
protected final Object stateLock = new Object();
/**

View File

@ -50,7 +50,7 @@ public class Hmac extends NativeStruct {
private int type = -1;
private byte[] key;
/* Lock around object state */
/** Lock around object state */
protected final Object stateLock = new Object();
/**

View File

@ -39,7 +39,7 @@ public abstract class NativeStruct extends WolfObject {
/* points to the internal native structure */
private long pointer = 0;
/* Lock around native pointer use */
/** Lock around native pointer use */
protected final Object pointerLock = new Object();
/**

View File

@ -32,7 +32,7 @@ public class Rsa extends NativeStruct {
private boolean hasPrivateKey = false;
private Rng rng;
/* Lock around object state */
/** Lock around object state */
protected final Object stateLock = new Object();
/**