@ThreadSafe public class X509RSAKeyLengthValidator extends AbstractX509Validator
Validator.Action| Modifier and Type | Field and Description |
|---|---|
private int |
errorBoundary
The RSA key length below which an error should result.
|
private int |
warningBoundary
The RSA key length below which a warning should result.
|
| Constructor and Description |
|---|
X509RSAKeyLengthValidator()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doValidate(X509Certificate cert,
Item<?> item,
String stageId)
Apply the validator to the object in the given
Item context. |
int |
getErrorBoundary()
Get the RSA key length below which an error will result.
|
int |
getWarningBoundary()
Get the RSA key length below which a warning will result.
|
void |
setErrorBoundary(int length)
Set the RSA key length below which an error should result.
|
void |
setWarningBoundary(int length)
Set the RSA key length below which a warning should result.
|
validateaddError, addStatus, addWarningsetIddoInitialize, getIddestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, isDestroyedsetIdprivate int errorBoundary
private int warningBoundary
public int getErrorBoundary()
public void setErrorBoundary(int length)
length - the RSA key length below which an error should resultpublic int getWarningBoundary()
public void setWarningBoundary(int length)
length - the RSA key length below which a warning should resultpublic void doValidate(@Nonnull X509Certificate cert, @Nonnull Item<?> item, @Nonnull String stageId)
Item context.
The validator influences future processing by adding item metadata to the Item.doValidate in class AbstractX509Validatorcert - the certificate to be validateditem - the Item context for the validationstageId - the identifier for the stage that is requesting the validation, for
inclusion in status metadataCopyright © 1999–2016. All rights reserved.