Package rdpclient.ntlmssp.asn1

Examples of rdpclient.ntlmssp.asn1.AlgorithmIdentifier


     *                The <code>SignerInfo</code> to add.
     * @throws NullPointerException
     *                 if the <code>info</code> is <code>null</code>.
     */
    public void addSignerInfo(SignerInfo info) {
  AlgorithmIdentifier idn;
  AlgorithmIdentifier idv;
  Iterator i;

  if (info == null) {
      throw new NullPointerException("Need a SignerInfo!");
  }
View Full Code Here


  seq.add(serial_);

  add(seq);

  /* Digest Algorithm Identifier */
  dAlg_ = new AlgorithmIdentifier();
  add(dAlg_);

  /* Authenticated Attributes */
  auth_ = new Attributes();
  add(new ASN1TaggedType(0, auth_, false, true));

  /* Digest Encryption Algorithm Identifier */
  cAlg_ = new AlgorithmIdentifier();
  add(cAlg_);

  /* Encrypted Digest */
  edig_ = new ASN1OctetString();
  add(edig_);
View Full Code Here

  seq.add(serial_);

  add(seq);

  /* Digest Algorithm Identifier */
  dAlg_ = new AlgorithmIdentifier();
  add(dAlg_);

  /* Authenticated Attributes */
  auth_ = new Attributes(registry);
  add(new ASN1TaggedType(0, auth_, false, true));

  /* Digest Encryption Algorithm Identifier */
  cAlg_ = new AlgorithmIdentifier();
  add(cAlg_);

  /* Encrypted Digest */
  edig_ = new ASN1OctetString();
  add(edig_);
View Full Code Here

  if (d == null || c == null) {
      throw new NoSuchAlgorithmException(
        "Cannot resolve signature algorithm!");
  }
  try {
      dAlg_ = new AlgorithmIdentifier(new ASN1ObjectIdentifier(d),
        new ASN1Null());
      cAlg_ = new AlgorithmIdentifier(new ASN1ObjectIdentifier(c),
        new ASN1Null());
  } catch (ASN1Exception e) {
      throw new InconsistentStateException(e);
  }
  /* Digest Algorithm Identifier */
 
View Full Code Here

  if (d == null || c == null) {
      throw new NoSuchAlgorithmException(
        "Cannot resolve signature algorithm!");
  }
  try {
      dAlg_ = new AlgorithmIdentifier(new ASN1ObjectIdentifier(d),
        new ASN1Null());
      cAlg_ = new AlgorithmIdentifier(new ASN1ObjectIdentifier(c),
        new ASN1Null());
  } catch (ASN1Exception e) {
      throw new InconsistentStateException(e);
  }
  /* Digest Algorithm Identifier */
 
View Full Code Here

  s = JCA.getOID(algorithm);
  if (s == null) {
      throw new NoSuchAlgorithmException(
        "Cannot resolve signature algorithm!");
  }
  dAlg_ = new AlgorithmIdentifier(s, params);
  cAlg_ = new AlgorithmIdentifier(s);

  /* Digest Algorithm Identifier */
  add(dAlg_);

  /* Authenticated Attributes */
 
View Full Code Here

  s = JCA.getOID(algorithm);
  if (s == null) {
      throw new NoSuchAlgorithmException(
        "Cannot resolve signature algorithm!");
  }
  dAlg_ = new AlgorithmIdentifier(s, params);
  cAlg_ = new AlgorithmIdentifier(s);

  /* Digest Algorithm Identifier */
  add(dAlg_);

  /* Authenticated Attributes */
 
View Full Code Here

      CertificateEncodingException {
  setOID(new ASN1ObjectIdentifier(EXTENSION_OID));
  setCritical(false);

  syntax_ = new ASN1Sequence(2);
  hashAlgorithm_ = new AlgorithmIdentifier();
  certificateHash_ = new ASN1OctetString();

  syntax_.add(hashAlgorithm_);
  syntax_.add(certificateHash_);
View Full Code Here

    public CertHashExtension(byte[] cert, String alg) throws ASN1Exception,
      GeneralSecurityException {
  if (cert == null) {
      throw new NullPointerException("cert");
  }
  AlgorithmIdentifier aid;
  MessageDigest dig;
  byte[] buf;

  aid = new AlgorithmIdentifier(alg);
  dig = MessageDigest.getInstance(alg);
  buf = dig.digest(cert);

  syntax_ = new ASN1Sequence(2);
  hashAlgorithm_ = aid;
View Full Code Here

  seq.add(issuer_);
  seq.add(serial_);
  add(seq);

  /* Key Encryption Algorithm Identifier */
  cAlg_ = new AlgorithmIdentifier();
  add(cAlg_);

  /* Encrypted Key */
  ekey_ = new ASN1OctetString();
  add(ekey_);
View Full Code Here

TOP

Related Classes of rdpclient.ntlmssp.asn1.AlgorithmIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.