public class BouncyCastleFactory extends Object implements IBouncyCastleFactory
IBouncyCastleFactory and creates bouncy-castle classes instances.| Constructor and Description |
|---|
BouncyCastleFactory()
Creates
IBouncyCastleFactory for usual bouncy-castle module. |
public BouncyCastleFactory()
IBouncyCastleFactory for usual bouncy-castle module.public String getAlgorithmOid(String name)
getAlgorithmOid in interface IBouncyCastleFactorypublic String getDigestAlgorithmOid(String name)
getDigestAlgorithmOid in interface IBouncyCastleFactorypublic String getAlgorithmName(String oid)
getAlgorithmName in interface IBouncyCastleFactorypublic IASN1ObjectIdentifier createASN1ObjectIdentifier(IASN1Encodable encodable)
createASN1ObjectIdentifier in interface IBouncyCastleFactorypublic IASN1ObjectIdentifier createASN1ObjectIdentifier(String str)
createASN1ObjectIdentifier in interface IBouncyCastleFactorypublic IASN1ObjectIdentifier createASN1ObjectIdentifierInstance(Object object)
createASN1ObjectIdentifierInstance in interface IBouncyCastleFactorypublic IASN1InputStream createASN1InputStream(InputStream stream)
createASN1InputStream in interface IBouncyCastleFactorypublic IASN1InputStream createASN1InputStream(byte[] bytes)
createASN1InputStream in interface IBouncyCastleFactorypublic IASN1OctetString createASN1OctetString(IASN1Encodable encodable)
createASN1OctetString in interface IBouncyCastleFactorypublic IASN1OctetString createASN1OctetString(IASN1TaggedObject taggedObject, boolean b)
createASN1OctetString in interface IBouncyCastleFactorypublic IASN1OctetString createASN1OctetString(byte[] bytes)
createASN1OctetString in interface IBouncyCastleFactorypublic IASN1Sequence createASN1Sequence(Object object)
createASN1Sequence in interface IBouncyCastleFactorypublic IASN1Sequence createASN1Sequence(IASN1Encodable encodable)
createASN1Sequence in interface IBouncyCastleFactorypublic IASN1Sequence createASN1Sequence(byte[] array) throws IOException
createASN1Sequence in interface IBouncyCastleFactoryIOExceptionpublic IASN1Sequence createASN1SequenceInstance(Object object)
createASN1SequenceInstance in interface IBouncyCastleFactorypublic IDERSequence createDERSequence(IASN1EncodableVector encodableVector)
createDERSequence in interface IBouncyCastleFactorypublic IDERSequence createDERSequence(IASN1Primitive primitive)
createDERSequence in interface IBouncyCastleFactorypublic IASN1TaggedObject createASN1TaggedObject(IASN1Encodable encodable)
createASN1TaggedObject in interface IBouncyCastleFactorypublic IASN1Integer createASN1Integer(IASN1Encodable encodable)
createASN1Integer in interface IBouncyCastleFactorypublic IASN1Integer createASN1Integer(int i)
createASN1Integer in interface IBouncyCastleFactorypublic IASN1Integer createASN1Integer(BigInteger i)
createASN1Integer in interface IBouncyCastleFactorypublic IASN1Set createASN1Set(IASN1Encodable encodable)
createASN1Set in interface IBouncyCastleFactorypublic IASN1Set createASN1Set(Object encodable)
createASN1Set in interface IBouncyCastleFactorypublic IASN1Set createASN1Set(IASN1TaggedObject taggedObject, boolean b)
createASN1Set in interface IBouncyCastleFactorypublic IASN1Set createNullASN1Set()
createNullASN1Set in interface IBouncyCastleFactorypublic IASN1OutputStream createASN1OutputStream(OutputStream stream)
createASN1OutputStream in interface IBouncyCastleFactorypublic IASN1OutputStream createASN1OutputStream(OutputStream outputStream, String asn1Encoding)
createASN1OutputStream in interface IBouncyCastleFactorypublic IDEROctetString createDEROctetString(byte[] bytes)
createDEROctetString in interface IBouncyCastleFactorypublic IDEROctetString createDEROctetString(IASN1Encodable encodable)
createDEROctetString in interface IBouncyCastleFactorypublic IASN1EncodableVector createASN1EncodableVector()
createASN1EncodableVector in interface IBouncyCastleFactorypublic IDERNull createDERNull()
createDERNull in interface IBouncyCastleFactorypublic IDERTaggedObject createDERTaggedObject(int i, IASN1Primitive primitive)
createDERTaggedObject in interface IBouncyCastleFactorypublic IDERTaggedObject createDERTaggedObject(boolean b, int i, IASN1Primitive primitive)
createDERTaggedObject in interface IBouncyCastleFactorypublic IDERSet createDERSet(IASN1EncodableVector encodableVector)
createDERSet in interface IBouncyCastleFactorypublic IDERSet createDERSet(IASN1Primitive primitive)
createDERSet in interface IBouncyCastleFactorypublic IDERSet createDERSet(ISignaturePolicyIdentifier identifier)
createDERSet in interface IBouncyCastleFactorypublic IDERSet createDERSet(IRecipientInfo recipientInfo)
createDERSet in interface IBouncyCastleFactorypublic IASN1Enumerated createASN1Enumerated(int i)
createASN1Enumerated in interface IBouncyCastleFactorypublic IASN1Enumerated createASN1Enumerated(IASN1Encodable object)
createASN1Enumerated in interface IBouncyCastleFactorypublic IASN1Encoding createASN1Encoding()
createASN1Encoding in interface IBouncyCastleFactorypublic IAttributeTable createAttributeTable(IASN1Set unat)
createAttributeTable in interface IBouncyCastleFactorypublic IPKCSObjectIdentifiers createPKCSObjectIdentifiers()
createPKCSObjectIdentifiers in interface IBouncyCastleFactorypublic IAttribute createAttribute(IASN1ObjectIdentifier attrType, IASN1Set attrValues)
createAttribute in interface IBouncyCastleFactorypublic IContentInfo createContentInfo(IASN1Sequence sequence)
createContentInfo in interface IBouncyCastleFactorypublic IContentInfo createContentInfo(IASN1ObjectIdentifier objectIdentifier, IASN1Encodable encodable)
createContentInfo in interface IBouncyCastleFactorypublic ITimeStampToken createTimeStampToken(IContentInfo contentInfo) throws TSPExceptionBC, IOException
createTimeStampToken in interface IBouncyCastleFactoryTSPExceptionBCIOExceptionpublic ISigningCertificate createSigningCertificate(IASN1Sequence sequence)
createSigningCertificate in interface IBouncyCastleFactorypublic ISigningCertificateV2 createSigningCertificateV2(IASN1Sequence sequence)
createSigningCertificateV2 in interface IBouncyCastleFactorypublic IBasicOCSPResponse createBasicOCSPResponse(IASN1Primitive primitive)
createBasicOCSPResponse in interface IBouncyCastleFactorypublic IBasicOCSPResponse createBasicOCSPResponse(byte[] bytes)
createBasicOCSPResponse in interface IBouncyCastleFactorypublic IBasicOCSPResp createBasicOCSPResp(IBasicOCSPResponse response)
createBasicOCSPResp in interface IBouncyCastleFactorypublic IBasicOCSPResp createBasicOCSPResp(Object response)
createBasicOCSPResp in interface IBouncyCastleFactorypublic IOCSPObjectIdentifiers createOCSPObjectIdentifiers()
createOCSPObjectIdentifiers in interface IBouncyCastleFactorypublic IAlgorithmIdentifier createAlgorithmIdentifier(IASN1ObjectIdentifier algorithm)
createAlgorithmIdentifier in interface IBouncyCastleFactorypublic IAlgorithmIdentifier createAlgorithmIdentifier(IASN1ObjectIdentifier algorithm, IASN1Encodable parameters)
createAlgorithmIdentifier in interface IBouncyCastleFactorypublic IRSASSAPSSParams createRSASSAPSSParams(IASN1Encodable encodable)
createRSASSAPSSParams in interface IBouncyCastleFactorypublic IRSASSAPSSParams createRSASSAPSSParamsWithMGF1(IASN1ObjectIdentifier digestAlgoOid, int saltLen, int trailerField)
createRSASSAPSSParamsWithMGF1 in interface IBouncyCastleFactorypublic Provider getProvider()
getProvider in interface IBouncyCastleFactorypublic String getProviderName()
getProviderName in interface IBouncyCastleFactorypublic IJceKeyTransEnvelopedRecipient createJceKeyTransEnvelopedRecipient(PrivateKey privateKey)
createJceKeyTransEnvelopedRecipient in interface IBouncyCastleFactorypublic IJceKeyAgreeEnvelopedRecipient createJceKeyAgreeEnvelopedRecipient(PrivateKey privateKey)
createJceKeyAgreeEnvelopedRecipient in interface IBouncyCastleFactorypublic IJcaContentVerifierProviderBuilder createJcaContentVerifierProviderBuilder()
createJcaContentVerifierProviderBuilder in interface IBouncyCastleFactorypublic IJcaSimpleSignerInfoVerifierBuilder createJcaSimpleSignerInfoVerifierBuilder()
createJcaSimpleSignerInfoVerifierBuilder in interface IBouncyCastleFactorypublic IJcaX509CertificateConverter createJcaX509CertificateConverter()
createJcaX509CertificateConverter in interface IBouncyCastleFactorypublic IJcaDigestCalculatorProviderBuilder createJcaDigestCalculatorProviderBuilder()
createJcaDigestCalculatorProviderBuilder in interface IBouncyCastleFactorypublic ICertificateID createCertificateID(IDigestCalculator digestCalculator, IX509CertificateHolder certificateHolder, BigInteger bigInteger) throws OCSPExceptionBC
createCertificateID in interface IBouncyCastleFactoryOCSPExceptionBCpublic ICertificateID createCertificateID()
createCertificateID in interface IBouncyCastleFactorypublic IX509CertificateHolder createX509CertificateHolder(byte[] bytes) throws IOException
createX509CertificateHolder in interface IBouncyCastleFactoryIOExceptionpublic IJcaX509CertificateHolder createJcaX509CertificateHolder(X509Certificate certificate) throws CertificateEncodingException
createJcaX509CertificateHolder in interface IBouncyCastleFactoryCertificateEncodingExceptionpublic IExtension createExtension(IASN1ObjectIdentifier objectIdentifier, boolean critical, IASN1OctetString octetString)
createExtension in interface IBouncyCastleFactorypublic IExtension createExtension()
createExtension in interface IBouncyCastleFactorypublic IExtensions createExtensions(IExtension extension)
createExtensions in interface IBouncyCastleFactorypublic IExtensions createNullExtensions()
createNullExtensions in interface IBouncyCastleFactorypublic IOCSPReqBuilder createOCSPReqBuilder()
createOCSPReqBuilder in interface IBouncyCastleFactorypublic ISigPolicyQualifierInfo createSigPolicyQualifierInfo(IASN1ObjectIdentifier objectIdentifier, IDERIA5String string)
createSigPolicyQualifierInfo in interface IBouncyCastleFactorypublic IASN1String createASN1String(IASN1Encodable encodable)
createASN1String in interface IBouncyCastleFactorypublic IASN1Primitive createASN1Primitive(IASN1Encodable encodable)
createASN1Primitive in interface IBouncyCastleFactorypublic IASN1Primitive createASN1Primitive(byte[] array) throws IOException
createASN1Primitive in interface IBouncyCastleFactoryIOExceptionpublic IOCSPResp createOCSPResp(IOCSPResponse ocspResponse)
createOCSPResp in interface IBouncyCastleFactorypublic IOCSPResp createOCSPResp(byte[] bytes) throws IOException
createOCSPResp in interface IBouncyCastleFactoryIOExceptionpublic IOCSPResp createOCSPResp()
createOCSPResp in interface IBouncyCastleFactorypublic IOCSPResponse createOCSPResponse(IOCSPResponseStatus respStatus, IResponseBytes responseBytes)
createOCSPResponse in interface IBouncyCastleFactorypublic IResponseBytes createResponseBytes(IASN1ObjectIdentifier asn1ObjectIdentifier, IDEROctetString derOctetString)
createResponseBytes in interface IBouncyCastleFactorypublic IOCSPRespBuilder createOCSPRespBuilderInstance()
createOCSPRespBuilderInstance in interface IBouncyCastleFactorypublic IOCSPRespBuilder createOCSPRespBuilder()
createOCSPRespBuilder in interface IBouncyCastleFactorypublic IOCSPResponseStatus createOCSPResponseStatus(int status)
createOCSPResponseStatus in interface IBouncyCastleFactorypublic IOCSPResponseStatus createOCSPResponseStatus()
createOCSPResponseStatus in interface IBouncyCastleFactorypublic ICertificateStatus createCertificateStatus()
createCertificateStatus in interface IBouncyCastleFactorypublic IRevokedStatus createRevokedStatus(ICertificateStatus certificateStatus)
createRevokedStatus in interface IBouncyCastleFactorypublic IRevokedStatus createRevokedStatus(Date date, int i)
createRevokedStatus in interface IBouncyCastleFactorypublic IDERIA5String createDERIA5String(IASN1TaggedObject taggedObject, boolean b)
createDERIA5String in interface IBouncyCastleFactorypublic IDERIA5String createDERIA5String(String str)
createDERIA5String in interface IBouncyCastleFactorypublic ICRLDistPoint createCRLDistPoint(Object object)
createCRLDistPoint in interface IBouncyCastleFactorypublic IDistributionPointName createDistributionPointName()
createDistributionPointName in interface IBouncyCastleFactorypublic IGeneralNames createGeneralNames(IASN1Encodable encodable)
createGeneralNames in interface IBouncyCastleFactorypublic IGeneralName createGeneralName()
createGeneralName in interface IBouncyCastleFactorypublic IOtherHashAlgAndValue createOtherHashAlgAndValue(IAlgorithmIdentifier algorithmIdentifier, IASN1OctetString octetString)
createOtherHashAlgAndValue in interface IBouncyCastleFactorypublic ISignaturePolicyId createSignaturePolicyId(IASN1ObjectIdentifier objectIdentifier, IOtherHashAlgAndValue algAndValue)
createSignaturePolicyId in interface IBouncyCastleFactorypublic ISignaturePolicyId createSignaturePolicyId(IASN1ObjectIdentifier objectIdentifier, IOtherHashAlgAndValue algAndValue, ISigPolicyQualifierInfo... policyQualifiers)
createSignaturePolicyId in interface IBouncyCastleFactorypublic ISignaturePolicyIdentifier createSignaturePolicyIdentifier(ISignaturePolicyId policyId)
createSignaturePolicyIdentifier in interface IBouncyCastleFactorypublic IEnvelopedData createEnvelopedData(IOriginatorInfo originatorInfo, IASN1Set set, IEncryptedContentInfo encryptedContentInfo, IASN1Set set1)
createEnvelopedData in interface IBouncyCastleFactorypublic IRecipientInfo createRecipientInfo(IKeyTransRecipientInfo keyTransRecipientInfo)
createRecipientInfo in interface IBouncyCastleFactorypublic IEncryptedContentInfo createEncryptedContentInfo(IASN1ObjectIdentifier data, IAlgorithmIdentifier algorithmIdentifier, IASN1OctetString octetString)
createEncryptedContentInfo in interface IBouncyCastleFactorypublic ITBSCertificate createTBSCertificate(IASN1Encodable encodable)
createTBSCertificate in interface IBouncyCastleFactorypublic ITBSCertificate createTBSCertificate(byte[] bytes)
createTBSCertificate in interface IBouncyCastleFactorypublic IIssuerAndSerialNumber createIssuerAndSerialNumber(IX500Name issuer, BigInteger value)
createIssuerAndSerialNumber in interface IBouncyCastleFactorypublic IRecipientIdentifier createRecipientIdentifier(IIssuerAndSerialNumber issuerAndSerialNumber)
createRecipientIdentifier in interface IBouncyCastleFactorypublic IKeyTransRecipientInfo createKeyTransRecipientInfo(IRecipientIdentifier recipientIdentifier, IAlgorithmIdentifier algorithmIdentifier, IASN1OctetString octetString)
createKeyTransRecipientInfo in interface IBouncyCastleFactorypublic IOriginatorInfo createNullOriginatorInfo()
createNullOriginatorInfo in interface IBouncyCastleFactorypublic ICMSEnvelopedData createCMSEnvelopedData(byte[] bytes) throws CMSExceptionBC
createCMSEnvelopedData in interface IBouncyCastleFactoryCMSExceptionBCpublic ITimeStampRequestGenerator createTimeStampRequestGenerator()
createTimeStampRequestGenerator in interface IBouncyCastleFactorypublic ITimeStampResponse createTimeStampResponse(byte[] respBytes) throws TSPExceptionBC, IOException
createTimeStampResponse in interface IBouncyCastleFactoryTSPExceptionBCIOExceptionpublic AbstractOCSPException createAbstractOCSPException(Exception e)
createAbstractOCSPException in interface IBouncyCastleFactorypublic IUnknownStatus createUnknownStatus()
createUnknownStatus in interface IBouncyCastleFactorypublic IASN1Dump createASN1Dump()
createASN1Dump in interface IBouncyCastleFactorypublic IASN1BitString createASN1BitString(IASN1Encodable encodable)
createASN1BitString in interface IBouncyCastleFactorypublic IASN1GeneralizedTime createASN1GeneralizedTime(IASN1Encodable encodable)
createASN1GeneralizedTime in interface IBouncyCastleFactorypublic IASN1UTCTime createASN1UTCTime(IASN1Encodable encodable)
createASN1UTCTime in interface IBouncyCastleFactorypublic IJcaCertStore createJcaCertStore(List<Certificate> certificates) throws CertificateEncodingException
createJcaCertStore in interface IBouncyCastleFactoryCertificateEncodingExceptionpublic ITimeStampResponseGenerator createTimeStampResponseGenerator(ITimeStampTokenGenerator tokenGenerator, Set<String> algorithms)
createTimeStampResponseGenerator in interface IBouncyCastleFactorypublic ITimeStampRequest createTimeStampRequest(byte[] bytes) throws IOException
createTimeStampRequest in interface IBouncyCastleFactoryIOExceptionpublic IJcaContentSignerBuilder createJcaContentSignerBuilder(String algorithm)
createJcaContentSignerBuilder in interface IBouncyCastleFactorypublic IJcaSignerInfoGeneratorBuilder createJcaSignerInfoGeneratorBuilder(IDigestCalculatorProvider digestCalcProviderProvider)
createJcaSignerInfoGeneratorBuilder in interface IBouncyCastleFactorypublic ITimeStampTokenGenerator createTimeStampTokenGenerator(ISignerInfoGenerator siGen, IDigestCalculator dgCalc, IASN1ObjectIdentifier policy) throws TSPExceptionBC
createTimeStampTokenGenerator in interface IBouncyCastleFactoryTSPExceptionBCpublic IX500Name createX500Name(X509Certificate certificate) throws CertificateEncodingException
createX500Name in interface IBouncyCastleFactoryCertificateEncodingExceptionpublic IX500Name createX500Name(String s)
createX500Name in interface IBouncyCastleFactorypublic IRespID createRespID(IX500Name x500Name)
createRespID in interface IBouncyCastleFactorypublic IBasicOCSPRespBuilder createBasicOCSPRespBuilder(IRespID respID)
createBasicOCSPRespBuilder in interface IBouncyCastleFactorypublic IOCSPReq createOCSPReq(byte[] requestBytes) throws IOException
createOCSPReq in interface IBouncyCastleFactoryIOExceptionpublic IX509v2CRLBuilder createX509v2CRLBuilder(IX500Name x500Name, Date date)
createX509v2CRLBuilder in interface IBouncyCastleFactorypublic IJcaX509v3CertificateBuilder createJcaX509v3CertificateBuilder(X509Certificate signingCert, BigInteger certSerialNumber, Date startDate, Date endDate, IX500Name subjectDnName, PublicKey publicKey)
createJcaX509v3CertificateBuilder in interface IBouncyCastleFactorypublic IBasicConstraints createBasicConstraints(boolean b)
createBasicConstraints in interface IBouncyCastleFactorypublic IKeyUsage createKeyUsage()
createKeyUsage in interface IBouncyCastleFactorypublic IKeyUsage createKeyUsage(int i)
createKeyUsage in interface IBouncyCastleFactorypublic IKeyPurposeId createKeyPurposeId()
createKeyPurposeId in interface IBouncyCastleFactorypublic IExtendedKeyUsage createExtendedKeyUsage(IKeyPurposeId purposeId)
createExtendedKeyUsage in interface IBouncyCastleFactorypublic IX509ExtensionUtils createX509ExtensionUtils(IDigestCalculator digestCalculator)
createX509ExtensionUtils in interface IBouncyCastleFactorypublic ISubjectPublicKeyInfo createSubjectPublicKeyInfo(Object object)
createSubjectPublicKeyInfo in interface IBouncyCastleFactorypublic ICRLReason createCRLReason()
createCRLReason in interface IBouncyCastleFactorypublic ITSTInfo createTSTInfo(IContentInfo contentInfo) throws AbstractTSPException, IOException
createTSTInfo in interface IBouncyCastleFactoryAbstractTSPExceptionIOExceptionpublic ISingleResp createSingleResp(IBasicOCSPResponse basicResp)
createSingleResp in interface IBouncyCastleFactorypublic X509Certificate createX509Certificate(Object element)
createX509Certificate in interface IBouncyCastleFactorypublic IBouncyCastleTestConstantsFactory getBouncyCastleFactoryTestUtil()
getBouncyCastleFactoryTestUtil in interface IBouncyCastleFactorypublic CRL createNullCrl()
createNullCrl in interface IBouncyCastleFactorypublic IPEMParser createPEMParser(Reader reader)
createPEMParser in interface IBouncyCastleFactorypublic IJceOpenSSLPKCS8DecryptorProviderBuilder createJceOpenSSLPKCS8DecryptorProviderBuilder()
createJceOpenSSLPKCS8DecryptorProviderBuilder in interface IBouncyCastleFactorypublic IJcaPEMKeyConverter createJcaPEMKeyConverter()
createJcaPEMKeyConverter in interface IBouncyCastleFactorypublic ITime createTime(Date date)
createTime in interface IBouncyCastleFactorypublic boolean isNullExtension(IExtension ext)
isNullExtension in interface IBouncyCastleFactorypublic boolean isNull(IASN1Encodable encodable)
isNull in interface IBouncyCastleFactorypublic SecureRandom getSecureRandom()
getSecureRandom in interface IBouncyCastleFactorypublic boolean isInApprovedOnlyMode()
isInApprovedOnlyMode in interface IBouncyCastleFactorypublic byte[] createCipherBytes(X509Certificate x509certificate, byte[] abyte0, IAlgorithmIdentifier algorithmIdentifier) throws GeneralSecurityException
createCipherBytes in interface IBouncyCastleFactoryGeneralSecurityExceptionpublic void isEncryptionFeatureSupported(int encryptionType,
boolean withCertificate)
isEncryptionFeatureSupported in interface IBouncyCastleFactoryCopyright © 1998–2024 Apryse Group NV. All rights reserved.