Top Description Inners Fields Constructors Methods
org.bouncycastle.pkix

public Class SubjectPublicKeyInfoChecker

extends Object
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.security.AccessController, .PrivilegedAction, .Security, java.util.Map, .WeakHashMap, org.bouncycastle.asn1.ASN1Integer, .ASN1ObjectIdentifier, .ASN1Sequence, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, .RSAPublicKey, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, .X509ObjectIdentifiers, org.bouncycastle.asn1.x9.X962Parameters, .X9FieldID, .X9ObjectIdentifiers, org.bouncycastle.crypto.CryptoServicesRegistrar

A checker for vetting subject public keys based on the direct checking of the ASN.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final SubjectPublicKeyInfoChecker.Cache

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static int

Returns:

value of property, or default if not found, as an int.
asInteger
(String
name of property.
propertyName
,
int
integer to return if property not defined.
defaultValue
)

Return propertyName as an integer, defaultValue used if not defined.

public static void
private static int
getNumberOfIterations(int bits, int certainty)

pack-priv static String

Returns:

value of property as a String, null if not defined.
getPropertyValue
(final String
name of property.
propertyName
)

Return the String value of the property propertyName.

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

validatedQsback to summary
private static final SubjectPublicKeyInfoChecker.Cache validatedQs

Constructor Detail

SubjectPublicKeyInfoCheckerback to summary
public SubjectPublicKeyInfoChecker()

Method Detail

asIntegerback to summary
pack-priv static int asInteger(String propertyName, int defaultValue)

Return propertyName as an integer, defaultValue used if not defined.

Parameters
propertyName:String

name of property.

defaultValue:int

integer to return if property not defined.

Returns:int

value of property, or default if not found, as an int.

checkInfoback to summary
public static void checkInfo(SubjectPublicKeyInfo pubInfo)
getNumberOfIterationsback to summary
private static int getNumberOfIterations(int bits, int certainty)
getPropertyValueback to summary
pack-priv static String getPropertyValue(final String propertyName)

Return the String value of the property propertyName. Property valuation starts with java.security, then thread local, then system properties.

Parameters
propertyName:String

name of property.

Returns:String

value of property as a String, null if not defined.

validateback to summary
private static void validate(BigInteger modulus)
org.bouncycastle.pkix back to summary

private Class SubjectPublicKeyInfoChecker.Cache

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final BigInteger[]
private int
private final Map<BigInteger, Boolean>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public synchronized void
add(BigInteger value)

public synchronized void
public synchronized boolean
public synchronized int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

preserveback to summary
private final BigInteger[] preserve
preserveCounterback to summary
private int preserveCounter
valuesback to summary
private final Map<BigInteger, Boolean> values

Constructor Detail

Cacheback to summary
private Cache()

Method Detail

addback to summary
public synchronized void add(BigInteger value)
clearback to summary
public synchronized void clear()
containsback to summary
public synchronized boolean contains(BigInteger value)
sizeback to summary
public synchronized int size()