bcprov-jdk15on-149

  {
    return restriction.toASN1Primitive();
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.isismtt.x509.Restriction
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.kisa;

import org.bouncycastle.asn1.ASN1ObjectIdentifier;

public abstract interface KISAObjectIdentifiers
{
  public static final ASN1ObjectIdentifier id_seedCBC = new ASN1ObjectIdentifier("1.2.410.200004.1.4");
  public static final ASN1ObjectIdentifier id_npki_app_cmsSeed_wrap = new ASN1ObjectIdentifier("1.2.410.200004.7.1.1.1");
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.kisa.KISAObjectIdentifiers
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.microsoft;

import org.bouncycastle.asn1.ASN1ObjectIdentifier;

public abstract interface MicrosoftObjectIdentifiers
{
  public static final ASN1ObjectIdentifier microsoft = new ASN1ObjectIdentifier("1.3.6.1.4.1.311");
  public static final ASN1ObjectIdentifier microsoftCertTemplateV1 = microsoft.branch("20.2");
  public static final ASN1ObjectIdentifier microsoftCaVersion = microsoft.branch("21.1");
  public static final ASN1ObjectIdentifier microsoftPrevCaCertHash = microsoft.branch("21.2");
  public static final ASN1ObjectIdentifier microsoftCertTemplateV2 = microsoft.branch("21.7");
  public static final ASN1ObjectIdentifier microsoftAppPolicies = microsoft.branch("21.10");
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.microsoft.MicrosoftObjectIdentifiers
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.misc;

import java.math.BigInteger;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.DERSequence;

public class CAST5CBCParameters
  extends ASN1Object
{
  ASN1Integer keyLength;
  ASN1OctetString iv;
  
  public static CAST5CBCParameters getInstance(Object paramObject)
  {
    if ((paramObject instanceof CAST5CBCParameters)) {
      return (CAST5CBCParameters)paramObject;
    }
    if (paramObject != null) {
      return new CAST5CBCParameters(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  public CAST5CBCParameters(byte[] paramArrayOfByte, int paramInt)
  {
    iv = new DEROctetString(paramArrayOfByte);
    keyLength = new ASN1Integer(paramInt);
  }
  
  public CAST5CBCParameters(ASN1Sequence paramASN1Sequence)
  {
    iv = ((ASN1OctetString)paramASN1Sequence.getObjectAt(0));
    keyLength = ((ASN1Integer)paramASN1Sequence.getObjectAt(1));
  }
  
  public byte[] getIV()
  {
    return iv.getOctets();
  }
  
  public int getKeyLength()
  {
    return keyLength.getValue().intValue();
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    localASN1EncodableVector.add(iv);
    localASN1EncodableVector.add(keyLength);
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.misc.CAST5CBCParameters
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.misc;

import org.bouncycastle.asn1.ASN1ObjectIdentifier;

public abstract interface MiscObjectIdentifiers
{
  public static final ASN1ObjectIdentifier netscape = new ASN1ObjectIdentifier("2.16.840.1.113730.1");
  public static final ASN1ObjectIdentifier netscapeCertType = netscape.branch("1");
  public static final ASN1ObjectIdentifier netscapeBaseURL = netscape.branch("2");
  public static final ASN1ObjectIdentifier netscapeRevocationURL = netscape.branch("3");
  public static final ASN1ObjectIdentifier netscapeCARevocationURL = netscape.branch("4");
  public static final ASN1ObjectIdentifier netscapeRenewalURL = netscape.branch("7");
  public static final ASN1ObjectIdentifier netscapeCApolicyURL = netscape.branch("8");
  public static final ASN1ObjectIdentifier netscapeSSLServerName = netscape.branch("12");
  public static final ASN1ObjectIdentifier netscapeCertComment = netscape.branch("13");
  public static final ASN1ObjectIdentifier verisign = new ASN1ObjectIdentifier("2.16.840.1.113733.1");
  public static final ASN1ObjectIdentifier verisignCzagExtension = verisign.branch("6.3");
  public static final ASN1ObjectIdentifier verisignDnbDunsNumber = verisign.branch("6.15");
  public static final ASN1ObjectIdentifier novell = new ASN1ObjectIdentifier("2.16.840.1.113719");
  public static final ASN1ObjectIdentifier novellSecurityAttribs = novell.branch("1.9.4.1");
  public static final ASN1ObjectIdentifier entrust = new ASN1ObjectIdentifier("1.2.840.113533.7");
  public static final ASN1ObjectIdentifier entrustVersionExtension = entrust.branch("65.0");
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.misc.MiscObjectIdentifiers
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.misc;

import org.bouncycastle.asn1.DERBitString;

public class NetscapeCertType
  extends DERBitString
{
  public static final int sslClient = 128;
  public static final int sslServer = 64;
  public static final int smime = 32;
  public static final int objectSigning = 16;
  public static final int reserved = 8;
  public static final int sslCA = 4;
  public static final int smimeCA = 2;
  public static final int objectSigningCA = 1;
  
  public NetscapeCertType(int paramInt)
  {
    super(getBytes(paramInt), getPadBits(paramInt));
  }
  
  public NetscapeCertType(DERBitString paramDERBitString)
  {
    super(paramDERBitString.getBytes(), paramDERBitString.getPadBits());
  }
  
  public String toString()
  {
    return "NetscapeCertType: 0x" + Integer.toHexString(data[0] & 0xFF);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.misc.NetscapeCertType
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.misc;

import org.bouncycastle.asn1.DERIA5String;

public class NetscapeRevocationURL
  extends DERIA5String
{
  public NetscapeRevocationURL(DERIA5String paramDERIA5String)
  {
    super(paramDERIA5String.getString());
  }
  
  public String toString()
  {
    return "NetscapeRevocationURL: " + getString();
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.misc.NetscapeRevocationURL
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.misc;

import org.bouncycastle.asn1.DERIA5String;

public class VerisignCzagExtension
  extends DERIA5String
{
  public VerisignCzagExtension(DERIA5String paramDERIA5String)
  {
    super(paramDERIA5String.getString());
  }
  
  public String toString()
  {
    return "VerisignCzagExtension: " + getString();
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.misc.VerisignCzagExtension
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.mozilla;

import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERIA5String;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;

public class PublicKeyAndChallenge
  extends ASN1Object
{
  private ASN1Sequence pkacSeq;
  private SubjectPublicKeyInfo spki;
  private DERIA5String challenge;
  
  public static PublicKeyAndChallenge getInstance(Object paramObject)
  {
    if ((paramObject instanceof PublicKeyAndChallenge)) {
      return (PublicKeyAndChallenge)paramObject;
    }
    if (paramObject != null) {
      return new PublicKeyAndChallenge(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  private PublicKeyAndChallenge(ASN1Sequence paramASN1Sequence)
  {
    pkacSeq = paramASN1Sequence;
    spki = SubjectPublicKeyInfo.getInstance(paramASN1Sequence.getObjectAt(0));
    challenge = DERIA5String.getInstance(paramASN1Sequence.getObjectAt(1));
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    return pkacSeq;
  }
  
  public SubjectPublicKeyInfo getSubjectPublicKeyInfo()
  {
    return spki;
  }
  
  public DERIA5String getChallenge()
  {
    return challenge;
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.mozilla.PublicKeyAndChallenge
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.nist;

import java.util.Enumeration;
import java.util.Hashtable;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.sec.SECNamedCurves;
import org.bouncycastle.asn1.sec.SECObjectIdentifiers;
import org.bouncycastle.asn1.x9.X9ECParameters;
import org.bouncycastle.util.Strings;

public class NISTNamedCurves
{
  static final Hashtable objIds = new Hashtable();
  static final Hashtable names = new Hashtable();
  
  static void defineCurve(String paramString, ASN1ObjectIdentifier paramASN1ObjectIdentifier)
  {
    objIds.put(paramString, paramASN1ObjectIdentifier);
    names.put(paramASN1ObjectIdentifier, paramString);
  }
  
  public static X9ECParameters getByName(String paramString)
  {
    ASN1ObjectIdentifier localASN1ObjectIdentifier = (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(paramString));
    if (localASN1ObjectIdentifier != null) {
      return getByOID(localASN1ObjectIdentifier);
    }
    return null;
  }
  
  public static X9ECParameters getByOID(ASN1ObjectIdentifier paramASN1ObjectIdentifier)
  {
    return SECNamedCurves.getByOID(paramASN1ObjectIdentifier);
  }
  
  public static ASN1ObjectIdentifier getOID(String paramString)
  {
    return (ASN1ObjectIdentifier)objIds.get(Strings.toUpperCase(paramString));
  }
  
  public static String getName(ASN1ObjectIdentifier paramASN1ObjectIdentifier)
  {
    return (String)names.get(paramASN1ObjectIdentifier);
  }
  
  public static Enumeration getNames()
  {
    return objIds.keys();
  }
  
  static
  {
    defineCurve("B-571", SECObjectIdentifiers.sect571r1);
    defineCurve("B-409", SECObjectIdentifiers.sect409r1);
    defineCurve("B-283", SECObjectIdentifiers.sect283r1);
    defineCurve("B-233", SECObjectIdentifiers.sect233r1);
    defineCurve("B-163", SECObjectIdentifiers.sect163r2);
    defineCurve("K-571", SECObjectIdentifiers.sect571k1);
    defineCurve("K-409", SECObjectIdentifiers.sect409k1);
    defineCurve("K-283", SECObjectIdentifiers.sect283k1);
    defineCurve("K-233", SECObjectIdentifiers.sect233k1);
    defineCurve("K-163", SECObjectIdentifiers.sect163k1);
    defineCurve("P-521", SECObjectIdentifiers.secp521r1);
    defineCurve("P-384", SECObjectIdentifiers.secp384r1);
    defineCurve("P-256", SECObjectIdentifiers.secp256r1);
    defineCurve("P-224", SECObjectIdentifiers.secp224r1);
    defineCurve("P-192", SECObjectIdentifiers.secp192r1);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.nist.NISTNamedCurves
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.nist;

import org.bouncycastle.asn1.ASN1ObjectIdentifier;

public abstract interface NISTObjectIdentifiers
{
  public static final ASN1ObjectIdentifier nistAlgorithm = new ASN1ObjectIdentifier("2.16.840.1.101.3.4");
  public static final ASN1ObjectIdentifier hashAlgs = nistAlgorithm.branch("2");
  public static final ASN1ObjectIdentifier id_sha256 = hashAlgs.branch("1");
  public static final ASN1ObjectIdentifier id_sha384 = hashAlgs.branch("2");
  public static final ASN1ObjectIdentifier id_sha512 = hashAlgs.branch("3");
  public static final ASN1ObjectIdentifier id_sha224 = hashAlgs.branch("4");
  public static final ASN1ObjectIdentifier id_sha512_224 = hashAlgs.branch("5");
  public static final ASN1ObjectIdentifier id_sha512_256 = hashAlgs.branch("6");
  public static final ASN1ObjectIdentifier aes = nistAlgorithm.branch("1");
  public static final ASN1ObjectIdentifier id_aes128_ECB = aes.branch("1");
  public static final ASN1ObjectIdentifier id_aes128_CBC = aes.branch("2");
  public static final ASN1ObjectIdentifier id_aes128_OFB = aes.branch("3");
  public static final ASN1ObjectIdentifier id_aes128_CFB = aes.branch("4");
  public static final ASN1ObjectIdentifier id_aes128_wrap = aes.branch("5");
  public static final ASN1ObjectIdentifier id_aes128_GCM = aes.branch("6");
  public static final ASN1ObjectIdentifier id_aes128_CCM = aes.branch("7");
  public static final ASN1ObjectIdentifier id_aes192_ECB = aes.branch("21");
  public static final ASN1ObjectIdentifier id_aes192_CBC = aes.branch("22");
  public static final ASN1ObjectIdentifier id_aes192_OFB = aes.branch("23");
  public static final ASN1ObjectIdentifier id_aes192_CFB = aes.branch("24");
  public static final ASN1ObjectIdentifier id_aes192_wrap = aes.branch("25");
  public static final ASN1ObjectIdentifier id_aes192_GCM = aes.branch("26");
  public static final ASN1ObjectIdentifier id_aes192_CCM = aes.branch("27");
  public static final ASN1ObjectIdentifier id_aes256_ECB = aes.branch("41");
  public static final ASN1ObjectIdentifier id_aes256_CBC = aes.branch("42");
  public static final ASN1ObjectIdentifier id_aes256_OFB = aes.branch("43");
  public static final ASN1ObjectIdentifier id_aes256_CFB = aes.branch("44");
  public static final ASN1ObjectIdentifier id_aes256_wrap = aes.branch("45");
  public static final ASN1ObjectIdentifier id_aes256_GCM = aes.branch("46");
  public static final ASN1ObjectIdentifier id_aes256_CCM = aes.branch("47");
  public static final ASN1ObjectIdentifier id_dsa_with_sha2 = nistAlgorithm.branch("3");
  public static final ASN1ObjectIdentifier dsa_with_sha224 = id_dsa_with_sha2.branch("1");
  public static final ASN1ObjectIdentifier dsa_with_sha256 = id_dsa_with_sha2.branch("2");
  public static final ASN1ObjectIdentifier dsa_with_sha384 = id_dsa_with_sha2.branch("3");
  public static final ASN1ObjectIdentifier dsa_with_sha512 = id_dsa_with_sha2.branch("4");
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.nist.NISTObjectIdentifiers
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ntt;

import org.bouncycastle.asn1.ASN1ObjectIdentifier;

public abstract interface NTTObjectIdentifiers
{
  public static final ASN1ObjectIdentifier id_camellia128_cbc = new ASN1ObjectIdentifier("1.2.392.200011.61.1.1.1.2");
  public static final ASN1ObjectIdentifier id_camellia192_cbc = new ASN1ObjectIdentifier("1.2.392.200011.61.1.1.1.3");
  public static final ASN1ObjectIdentifier id_camellia256_cbc = new ASN1ObjectIdentifier("1.2.392.200011.61.1.1.1.4");
  public static final ASN1ObjectIdentifier id_camellia128_wrap = new ASN1ObjectIdentifier("1.2.392.200011.61.1.1.3.2");
  public static final ASN1ObjectIdentifier id_camellia192_wrap = new ASN1ObjectIdentifier("1.2.392.200011.61.1.1.3.3");
  public static final ASN1ObjectIdentifier id_camellia256_wrap = new ASN1ObjectIdentifier("1.2.392.200011.61.1.1.3.4");
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ntt.NTTObjectIdentifiers
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERBitString;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.DERTaggedObject;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;

public class BasicOCSPResponse
  extends ASN1Object
{
  private ResponseData tbsResponseData;
  private AlgorithmIdentifier signatureAlgorithm;
  private DERBitString signature;
  private ASN1Sequence certs;
  
  public BasicOCSPResponse(ResponseData paramResponseData, AlgorithmIdentifier paramAlgorithmIdentifier, DERBitString paramDERBitString, ASN1Sequence paramASN1Sequence)
  {
    tbsResponseData = paramResponseData;
    signatureAlgorithm = paramAlgorithmIdentifier;
    signature = paramDERBitString;
    certs = paramASN1Sequence;
  }
  
  private BasicOCSPResponse(ASN1Sequence paramASN1Sequence)
  {
    tbsResponseData = ResponseData.getInstance(paramASN1Sequence.getObjectAt(0));
    signatureAlgorithm = AlgorithmIdentifier.getInstance(paramASN1Sequence.getObjectAt(1));
    signature = ((DERBitString)paramASN1Sequence.getObjectAt(2));
    if (paramASN1Sequence.size() > 3) {
      certs = ASN1Sequence.getInstance((ASN1TaggedObject)paramASN1Sequence.getObjectAt(3), true);
    }
  }
  
  public static BasicOCSPResponse getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(ASN1Sequence.getInstance(paramASN1TaggedObject, paramBoolean));
  }
  
  public static BasicOCSPResponse getInstance(Object paramObject)
  {
    if ((paramObject instanceof BasicOCSPResponse)) {
      return (BasicOCSPResponse)paramObject;
    }
    if (paramObject != null) {
      return new BasicOCSPResponse(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  public ResponseData getTbsResponseData()
  {
    return tbsResponseData;
  }
  
  public AlgorithmIdentifier getSignatureAlgorithm()
  {
    return signatureAlgorithm;
  }
  
  public DERBitString getSignature()
  {
    return signature;
  }
  
  public ASN1Sequence getCerts()
  {
    return certs;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    localASN1EncodableVector.add(tbsResponseData);
    localASN1EncodableVector.add(signatureAlgorithm);
    localASN1EncodableVector.add(signature);
    if (certs != null) {
      localASN1EncodableVector.add(new DERTaggedObject(true, 0, certs));
    }
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.BasicOCSPResponse
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;

public class CertID
  extends ASN1Object
{
  AlgorithmIdentifier hashAlgorithm;
  ASN1OctetString issuerNameHash;
  ASN1OctetString issuerKeyHash;
  ASN1Integer serialNumber;
  
  public CertID(AlgorithmIdentifier paramAlgorithmIdentifier, ASN1OctetString paramASN1OctetString1, ASN1OctetString paramASN1OctetString2, ASN1Integer paramASN1Integer)
  {
    hashAlgorithm = paramAlgorithmIdentifier;
    issuerNameHash = paramASN1OctetString1;
    issuerKeyHash = paramASN1OctetString2;
    serialNumber = paramASN1Integer;
  }
  
  private CertID(ASN1Sequence paramASN1Sequence)
  {
    hashAlgorithm = AlgorithmIdentifier.getInstance(paramASN1Sequence.getObjectAt(0));
    issuerNameHash = ((ASN1OctetString)paramASN1Sequence.getObjectAt(1));
    issuerKeyHash = ((ASN1OctetString)paramASN1Sequence.getObjectAt(2));
    serialNumber = ((ASN1Integer)paramASN1Sequence.getObjectAt(3));
  }
  
  public static CertID getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(ASN1Sequence.getInstance(paramASN1TaggedObject, paramBoolean));
  }
  
  public static CertID getInstance(Object paramObject)
  {
    if ((paramObject instanceof CertID)) {
      return (CertID)paramObject;
    }
    if (paramObject != null) {
      return new CertID(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  public AlgorithmIdentifier getHashAlgorithm()
  {
    return hashAlgorithm;
  }
  
  public ASN1OctetString getIssuerNameHash()
  {
    return issuerNameHash;
  }
  
  public ASN1OctetString getIssuerKeyHash()
  {
    return issuerKeyHash;
  }
  
  public ASN1Integer getSerialNumber()
  {
    return serialNumber;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    localASN1EncodableVector.add(hashAlgorithm);
    localASN1EncodableVector.add(issuerNameHash);
    localASN1EncodableVector.add(issuerKeyHash);
    localASN1EncodableVector.add(serialNumber);
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.CertID
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1Choice;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERNull;
import org.bouncycastle.asn1.DERTaggedObject;

public class CertStatus
  extends ASN1Object
  implements ASN1Choice
{
  private int tagNo;
  private ASN1Encodable value;
  
  public CertStatus()
  {
    tagNo = 0;
    value = DERNull.INSTANCE;
  }
  
  public CertStatus(RevokedInfo paramRevokedInfo)
  {
    tagNo = 1;
    value = paramRevokedInfo;
  }
  
  public CertStatus(int paramInt, ASN1Encodable paramASN1Encodable)
  {
    tagNo = paramInt;
    value = paramASN1Encodable;
  }
  
  public CertStatus(ASN1TaggedObject paramASN1TaggedObject)
  {
    tagNo = paramASN1TaggedObject.getTagNo();
    switch (paramASN1TaggedObject.getTagNo())
    {
    case 0: 
      value = DERNull.INSTANCE;
      break;
    case 1: 
      value = RevokedInfo.getInstance(paramASN1TaggedObject, false);
      break;
    case 2: 
      value = DERNull.INSTANCE;
    }
  }
  
  public static CertStatus getInstance(Object paramObject)
  {
    if ((paramObject == null) || ((paramObject instanceof CertStatus))) {
      return (CertStatus)paramObject;
    }
    if ((paramObject instanceof ASN1TaggedObject)) {
      return new CertStatus((ASN1TaggedObject)paramObject);
    }
    throw new IllegalArgumentException("unknown object in factory: " + paramObject.getClass().getName());
  }
  
  public static CertStatus getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(paramASN1TaggedObject.getObject());
  }
  
  public int getTagNo()
  {
    return tagNo;
  }
  
  public ASN1Encodable getStatus()
  {
    return value;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    return new DERTaggedObject(false, tagNo, value);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.CertStatus
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import java.util.Enumeration;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1GeneralizedTime;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERGeneralizedTime;
import org.bouncycastle.asn1.DERIA5String;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.DERTaggedObject;

public class CrlID
  extends ASN1Object
{
  private DERIA5String crlUrl;
  private ASN1Integer crlNum;
  private ASN1GeneralizedTime crlTime;
  
  private CrlID(ASN1Sequence paramASN1Sequence)
  {
    Enumeration localEnumeration = paramASN1Sequence.getObjects();
    while (localEnumeration.hasMoreElements())
    {
      ASN1TaggedObject localASN1TaggedObject = (ASN1TaggedObject)localEnumeration.nextElement();
      switch (localASN1TaggedObject.getTagNo())
      {
      case 0: 
        crlUrl = DERIA5String.getInstance(localASN1TaggedObject, true);
        break;
      case 1: 
        crlNum = ASN1Integer.getInstance(localASN1TaggedObject, true);
        break;
      case 2: 
        crlTime = DERGeneralizedTime.getInstance(localASN1TaggedObject, true);
        break;
      default: 
        throw new IllegalArgumentException("unknown tag number: " + localASN1TaggedObject.getTagNo());
      }
    }
  }
  
  public static CrlID getInstance(Object paramObject)
  {
    if ((paramObject instanceof CrlID)) {
      return (CrlID)paramObject;
    }
    if (paramObject != null) {
      return new CrlID(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  public DERIA5String getCrlUrl()
  {
    return crlUrl;
  }
  
  public ASN1Integer getCrlNum()
  {
    return crlNum;
  }
  
  public ASN1GeneralizedTime getCrlTime()
  {
    return crlTime;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    if (crlUrl != null) {
      localASN1EncodableVector.add(new DERTaggedObject(true, 0, crlUrl));
    }
    if (crlNum != null) {
      localASN1EncodableVector.add(new DERTaggedObject(true, 1, crlNum));
    }
    if (crlTime != null) {
      localASN1EncodableVector.add(new DERTaggedObject(true, 2, crlTime));
    }
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.CrlID
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1ObjectIdentifier;

public abstract interface OCSPObjectIdentifiers
{
  public static final String pkix_ocsp = "1.3.6.1.5.5.7.48.1";
  public static final ASN1ObjectIdentifier id_pkix_ocsp = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1");
  public static final ASN1ObjectIdentifier id_pkix_ocsp_basic = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1.1");
  public static final ASN1ObjectIdentifier id_pkix_ocsp_nonce = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1.2");
  public static final ASN1ObjectIdentifier id_pkix_ocsp_crl = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1.3");
  public static final ASN1ObjectIdentifier id_pkix_ocsp_response = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1.4");
  public static final ASN1ObjectIdentifier id_pkix_ocsp_nocheck = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1.5");
  public static final ASN1ObjectIdentifier id_pkix_ocsp_archive_cutoff = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1.6");
  public static final ASN1ObjectIdentifier id_pkix_ocsp_service_locator = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.48.1.7");
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.OCSPObjectIdentifiers
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.DERTaggedObject;

public class OCSPRequest
  extends ASN1Object
{
  TBSRequest tbsRequest;
  Signature optionalSignature;
  
  public OCSPRequest(TBSRequest paramTBSRequest, Signature paramSignature)
  {
    tbsRequest = paramTBSRequest;
    optionalSignature = paramSignature;
  }
  
  private OCSPRequest(ASN1Sequence paramASN1Sequence)
  {
    tbsRequest = TBSRequest.getInstance(paramASN1Sequence.getObjectAt(0));
    if (paramASN1Sequence.size() == 2) {
      optionalSignature = Signature.getInstance((ASN1TaggedObject)paramASN1Sequence.getObjectAt(1), true);
    }
  }
  
  public static OCSPRequest getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(ASN1Sequence.getInstance(paramASN1TaggedObject, paramBoolean));
  }
  
  public static OCSPRequest getInstance(Object paramObject)
  {
    if ((paramObject instanceof OCSPRequest)) {
      return (OCSPRequest)paramObject;
    }
    if (paramObject != null) {
      return new OCSPRequest(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  public TBSRequest getTbsRequest()
  {
    return tbsRequest;
  }
  
  public Signature getOptionalSignature()
  {
    return optionalSignature;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    localASN1EncodableVector.add(tbsRequest);
    if (optionalSignature != null) {
      localASN1EncodableVector.add(new DERTaggedObject(true, 0, optionalSignature));
    }
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.OCSPRequest
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.DERTaggedObject;

public class OCSPResponse
  extends ASN1Object
{
  OCSPResponseStatus responseStatus;
  ResponseBytes responseBytes;
  
  public OCSPResponse(OCSPResponseStatus paramOCSPResponseStatus, ResponseBytes paramResponseBytes)
  {
    responseStatus = paramOCSPResponseStatus;
    responseBytes = paramResponseBytes;
  }
  
  private OCSPResponse(ASN1Sequence paramASN1Sequence)
  {
    responseStatus = OCSPResponseStatus.getInstance(paramASN1Sequence.getObjectAt(0));
    if (paramASN1Sequence.size() == 2) {
      responseBytes = ResponseBytes.getInstance((ASN1TaggedObject)paramASN1Sequence.getObjectAt(1), true);
    }
  }
  
  public static OCSPResponse getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(ASN1Sequence.getInstance(paramASN1TaggedObject, paramBoolean));
  }
  
  public static OCSPResponse getInstance(Object paramObject)
  {
    if ((paramObject instanceof OCSPResponse)) {
      return (OCSPResponse)paramObject;
    }
    if (paramObject != null) {
      return new OCSPResponse(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  public OCSPResponseStatus getResponseStatus()
  {
    return responseStatus;
  }
  
  public ResponseBytes getResponseBytes()
  {
    return responseBytes;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    localASN1EncodableVector.add(responseStatus);
    if (responseBytes != null) {
      localASN1EncodableVector.add(new DERTaggedObject(true, 0, responseBytes));
    }
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.OCSPResponse
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import java.math.BigInteger;
import org.bouncycastle.asn1.ASN1Enumerated;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;

public class OCSPResponseStatus
  extends ASN1Object
{
  public static final int SUCCESSFUL = 0;
  public static final int MALFORMED_REQUEST = 1;
  public static final int INTERNAL_ERROR = 2;
  public static final int TRY_LATER = 3;
  public static final int SIG_REQUIRED = 5;
  public static final int UNAUTHORIZED = 6;
  private ASN1Enumerated value;
  
  public OCSPResponseStatus(int paramInt)
  {
    this(new ASN1Enumerated(paramInt));
  }
  
  private OCSPResponseStatus(ASN1Enumerated paramASN1Enumerated)
  {
    value = paramASN1Enumerated;
  }
  
  public static OCSPResponseStatus getInstance(Object paramObject)
  {
    if ((paramObject instanceof OCSPResponseStatus)) {
      return (OCSPResponseStatus)paramObject;
    }
    if (paramObject != null) {
      return new OCSPResponseStatus(ASN1Enumerated.getInstance(paramObject));
    }
    return null;
  }
  
  public BigInteger getValue()
  {
    return value.getValue();
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    return value;
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.OCSPResponseStatus
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.DERTaggedObject;
import org.bouncycastle.asn1.x509.Extensions;

public class Request
  extends ASN1Object
{
  CertID reqCert;
  Extensions singleRequestExtensions;
  
  public Request(CertID paramCertID, Extensions paramExtensions)
  {
    reqCert = paramCertID;
    singleRequestExtensions = paramExtensions;
  }
  
  private Request(ASN1Sequence paramASN1Sequence)
  {
    reqCert = CertID.getInstance(paramASN1Sequence.getObjectAt(0));
    if (paramASN1Sequence.size() == 2) {
      singleRequestExtensions = Extensions.getInstance((ASN1TaggedObject)paramASN1Sequence.getObjectAt(1), true);
    }
  }
  
  public static Request getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(ASN1Sequence.getInstance(paramASN1TaggedObject, paramBoolean));
  }
  
  public static Request getInstance(Object paramObject)
  {
    if ((paramObject instanceof Request)) {
      return (Request)paramObject;
    }
    if (paramObject != null) {
      return new Request(ASN1Sequence.getInstance(paramObject));
    }
    return null;
  }
  
  public CertID getReqCert()
  {
    return reqCert;
  }
  
  public Extensions getSingleRequestExtensions()
  {
    return singleRequestExtensions;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    localASN1EncodableVector.add(reqCert);
    if (singleRequestExtensions != null) {
      localASN1EncodableVector.add(new DERTaggedObject(true, 0, singleRequestExtensions));
    }
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.Request
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1Choice;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.DERTaggedObject;
import org.bouncycastle.asn1.x500.X500Name;

public class ResponderID
  extends ASN1Object
  implements ASN1Choice
{
  private ASN1Encodable value;
  
  public ResponderID(ASN1OctetString paramASN1OctetString)
  {
    value = paramASN1OctetString;
  }
  
  public ResponderID(X500Name paramX500Name)
  {
    value = paramX500Name;
  }
  
  public static ResponderID getInstance(Object paramObject)
  {
    if ((paramObject instanceof ResponderID)) {
      return (ResponderID)paramObject;
    }
    if ((paramObject instanceof DEROctetString)) {
      return new ResponderID((DEROctetString)paramObject);
    }
    if ((paramObject instanceof ASN1TaggedObject))
    {
      ASN1TaggedObject localASN1TaggedObject = (ASN1TaggedObject)paramObject;
      if (localASN1TaggedObject.getTagNo() == 1) {
        return new ResponderID(X500Name.getInstance(localASN1TaggedObject, true));
      }
      return new ResponderID(ASN1OctetString.getInstance(localASN1TaggedObject, true));
    }
    return new ResponderID(X500Name.getInstance(paramObject));
  }
  
  public static ResponderID getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(paramASN1TaggedObject.getObject());
  }
  
  public byte[] getKeyHash()
  {
    if ((value instanceof ASN1OctetString))
    {
      ASN1OctetString localASN1OctetString = (ASN1OctetString)value;
      return localASN1OctetString.getOctets();
    }
    return null;
  }
  
  public X500Name getName()
  {
    if ((value instanceof ASN1OctetString)) {
      return null;
    }
    return X500Name.getInstance(value);
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    if ((value instanceof ASN1OctetString)) {
      return new DERTaggedObject(true, 2, value);
    }
    return new DERTaggedObject(true, 1, value);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.ResponderID
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.ASN1OctetString;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERSequence;

public class ResponseBytes
  extends ASN1Object
{
  ASN1ObjectIdentifier responseType;
  ASN1OctetString response;
  
  public ResponseBytes(ASN1ObjectIdentifier paramASN1ObjectIdentifier, ASN1OctetString paramASN1OctetString)
  {
    responseType = paramASN1ObjectIdentifier;
    response = paramASN1OctetString;
  }
  
  public ResponseBytes(ASN1Sequence paramASN1Sequence)
  {
    responseType = ((ASN1ObjectIdentifier)paramASN1Sequence.getObjectAt(0));
    response = ((ASN1OctetString)paramASN1Sequence.getObjectAt(1));
  }
  
  public static ResponseBytes getInstance(ASN1TaggedObject paramASN1TaggedObject, boolean paramBoolean)
  {
    return getInstance(ASN1Sequence.getInstance(paramASN1TaggedObject, paramBoolean));
  }
  
  public static ResponseBytes getInstance(Object paramObject)
  {
    if ((paramObject == null) || ((paramObject instanceof ResponseBytes))) {
      return (ResponseBytes)paramObject;
    }
    if ((paramObject instanceof ASN1Sequence)) {
      return new ResponseBytes((ASN1Sequence)paramObject);
    }
    throw new IllegalArgumentException("unknown object in factory: " + paramObject.getClass().getName());
  }
  
  public ASN1ObjectIdentifier getResponseType()
  {
    return responseType;
  }
  
  public ASN1OctetString getResponse()
  {
    return response;
  }
  
  public ASN1Primitive toASN1Primitive()
  {
    ASN1EncodableVector localASN1EncodableVector = new ASN1EncodableVector();
    localASN1EncodableVector.add(responseType);
    localASN1EncodableVector.add(response);
    return new DERSequence(localASN1EncodableVector);
  }
}

/* Location:
 * Qualified Name:     org.bouncycastle.asn1.ocsp.ResponseBytes
 * Java Class Version: 5 (49.0)
 * JD-Core Version:    0.7.1
 */
package org.bouncycastle.asn1.ocsp;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.ASN1GeneralizedTime;
import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.ASN1TaggedObject;
import org.bouncycastle.asn1.DERGeneralizedTime;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.DERTaggedObject;
import org.bouncycastle.asn1.x509.Extensions;
import org.bouncycastle.asn1.x509.X509Extensions;

public class ResponseData
  extends ASN1Object
{
  private static final ASN1Integer V1 = new ASN1Integer(0L);
  private boolean versionPresent;
  private ASN1Integer version;
  private ResponderID responderID;
  private ASN1GeneralizedTime producedAt;
  private ASN1Sequence responses;
  private Extensions responseExtensions;
  
  public ResponseData(ASN1Integer paramASN1Integer, ResponderID paramResponderID, ASN1GeneralizedTime paramASN1GeneralizedTime, ASN1Sequence paramASN1Sequence, Extensions paramExtensions)
  {
    version = paramASN1Integer;
    responderID = paramResponderID;
    producedAt = paramASN1GeneralizedTime;
    responses = paramASN1Sequence;
    responseExtensio
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2019. Infinite Loop Ltd