Package se.swedenconnect.cert.extensions
Class PrivateKeyUsagePeriod
java.lang.Object
org.bouncycastle.asn1.ASN1Object
se.swedenconnect.cert.extensions.PrivateKeyUsagePeriod
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class PrivateKeyUsagePeriod
extends org.bouncycastle.asn1.ASN1Object
Private key usage period X.509 extension implementation for extending Bouncycastle
The AuthorityInformationAccess object.
id-pe-subjectInfoAccess OBJECT IDENTIFIER ::= { id-pe 11 } SubjectInfoAccessSyntax ::= SEQUENCE SIZE (1..MAX) OF AccessDescription AccessDescription ::= SEQUENCE { accessMethod OBJECT IDENTIFIER, accessLocation GeneralName }
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateKeyUsagePeriod
fromExtensions
(org.bouncycastle.asn1.x509.Extensions extensions) Creates an instance of the PrivateKeyUsagePeriod extensionstatic PrivateKeyUsagePeriod
getInstance
(Object obj) Creates an instance of the PrivateKeyUsagePeriod extensionorg.bouncycastle.asn1.ASN1Primitive
toString()
Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
PrivateKeyUsagePeriod
Constructor- Parameters:
notBefore
- not before datenotAfter
- not after date
-
-
Method Details
-
getInstance
Creates an instance of the PrivateKeyUsagePeriod extension- Parameters:
obj
- object holding extension data- Returns:
PrivateKeyUsagePeriod
extension
-
fromExtensions
public static PrivateKeyUsagePeriod fromExtensions(org.bouncycastle.asn1.x509.Extensions extensions) Creates an instance of the PrivateKeyUsagePeriod extension- Parameters:
extensions
- extensions data- Returns:
PrivateKeyUsagePeriod
extension
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-
toString
-