org.spongycastle.jce.netscape

Class NetscapeCertRequest

    • Constructor Summary

      Constructors 
      Constructor and Description
      NetscapeCertRequest(org.spongycastle.asn1.ASN1Sequence spkac) 
      NetscapeCertRequest(byte[] req) 
      NetscapeCertRequest(java.lang.String challenge, org.spongycastle.asn1.x509.AlgorithmIdentifier signing_alg, java.security.PublicKey pub_key) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getChallenge() 
      org.spongycastle.asn1.x509.AlgorithmIdentifier getKeyAlgorithm() 
      java.security.PublicKey getPublicKey() 
      org.spongycastle.asn1.x509.AlgorithmIdentifier getSigningAlgorithm() 
      void setChallenge(java.lang.String value) 
      void setKeyAlgorithm(org.spongycastle.asn1.x509.AlgorithmIdentifier value) 
      void setPublicKey(java.security.PublicKey value) 
      void setSigningAlgorithm(org.spongycastle.asn1.x509.AlgorithmIdentifier value) 
      void sign(java.security.PrivateKey priv_key) 
      void sign(java.security.PrivateKey priv_key, java.security.SecureRandom rand) 
      org.spongycastle.asn1.ASN1Primitive toASN1Primitive() 
      boolean verify(java.lang.String challenge) 
      • Methods inherited from class org.spongycastle.asn1.ASN1Object

        equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetscapeCertRequest

        public NetscapeCertRequest(byte[] req)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • NetscapeCertRequest

        public NetscapeCertRequest(org.spongycastle.asn1.ASN1Sequence spkac)
      • NetscapeCertRequest

        public NetscapeCertRequest(java.lang.String challenge,
                           org.spongycastle.asn1.x509.AlgorithmIdentifier signing_alg,
                           java.security.PublicKey pub_key)
                            throws java.security.NoSuchAlgorithmException,
                                   java.security.spec.InvalidKeySpecException,
                                   java.security.NoSuchProviderException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.spec.InvalidKeySpecException
        java.security.NoSuchProviderException
    • Method Detail

      • getChallenge

        public java.lang.String getChallenge()
      • setChallenge

        public void setChallenge(java.lang.String value)
      • getSigningAlgorithm

        public org.spongycastle.asn1.x509.AlgorithmIdentifier getSigningAlgorithm()
      • setSigningAlgorithm

        public void setSigningAlgorithm(org.spongycastle.asn1.x509.AlgorithmIdentifier value)
      • getKeyAlgorithm

        public org.spongycastle.asn1.x509.AlgorithmIdentifier getKeyAlgorithm()
      • setKeyAlgorithm

        public void setKeyAlgorithm(org.spongycastle.asn1.x509.AlgorithmIdentifier value)
      • getPublicKey

        public java.security.PublicKey getPublicKey()
      • setPublicKey

        public void setPublicKey(java.security.PublicKey value)
      • verify

        public boolean verify(java.lang.String challenge)
                       throws java.security.NoSuchAlgorithmException,
                              java.security.InvalidKeyException,
                              java.security.SignatureException,
                              java.security.NoSuchProviderException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.InvalidKeyException
        java.security.SignatureException
        java.security.NoSuchProviderException
      • sign

        public void sign(java.security.PrivateKey priv_key)
                  throws java.security.NoSuchAlgorithmException,
                         java.security.InvalidKeyException,
                         java.security.SignatureException,
                         java.security.NoSuchProviderException,
                         java.security.spec.InvalidKeySpecException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.InvalidKeyException
        java.security.SignatureException
        java.security.NoSuchProviderException
        java.security.spec.InvalidKeySpecException
      • sign

        public void sign(java.security.PrivateKey priv_key,
                java.security.SecureRandom rand)
                  throws java.security.NoSuchAlgorithmException,
                         java.security.InvalidKeyException,
                         java.security.SignatureException,
                         java.security.NoSuchProviderException,
                         java.security.spec.InvalidKeySpecException
        Throws:
        java.security.NoSuchAlgorithmException
        java.security.InvalidKeyException
        java.security.SignatureException
        java.security.NoSuchProviderException
        java.security.spec.InvalidKeySpecException
      • toASN1Primitive

        public org.spongycastle.asn1.ASN1Primitive toASN1Primitive()
        Specified by:
        toASN1Primitive in interface org.spongycastle.asn1.ASN1Encodable
        Specified by:
        toASN1Primitive in class org.spongycastle.asn1.ASN1Object