Package no.digipost.security.cert
Class BasicConstraints
- java.lang.Object
-
- no.digipost.security.cert.BasicConstraints
-
public final class BasicConstraints extends Object
The basic constraints extension (OID "2.5.29.19") identifies whether the subject of the certificate is a CA and the maximum depth of valid certification paths that include this certificate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasicConstraints.Type
-
Field Summary
Fields Modifier and Type Field Description intmaxFollowingIntermediateCertsThepathLenConstraintvalue of the basic constraints.static StringOIDBasicConstraints.Typetype
-
Constructor Summary
Constructors Constructor Description BasicConstraints(BasicConstraints.Type type, int maxFollowingPathLength)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)static BasicConstraintsfrom(X509Certificate certificate)inthashCode()StringtoString()
-
-
-
Field Detail
-
OID
public static final String OID
- See Also:
- Constant Field Values
-
type
public final BasicConstraints.Type type
-
maxFollowingIntermediateCerts
public final int maxFollowingIntermediateCerts
ThepathLenConstraintvalue of the basic constraints. This value is only meaningful in the case thattype==BasicConstraints.Type.CA, and gives the maximum number of non-self-issued intermediate certificates that may follow this certificate in a valid certification path.Note: The last certificate in the certification path is not an intermediate certificate, and is not included in this limit. A
maxFollowingIntermediateCertsof zero indicates that only one more certificate may follow in a valid certification path.
-
-
Constructor Detail
-
BasicConstraints
public BasicConstraints(BasicConstraints.Type type, int maxFollowingPathLength)
-
-
Method Detail
-
from
public static BasicConstraints from(X509Certificate certificate)
-
-