jdk/src/share/classes/sun/security/timestamp/TSResponse.java
changeset 10336 0bb1999251f8
parent 5506 202f599c92aa
child 10788 680a3dbfcaba
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    24  */
    24  */
    25 
    25 
    26 package sun.security.timestamp;
    26 package sun.security.timestamp;
    27 
    27 
    28 import java.io.IOException;
    28 import java.io.IOException;
    29 import java.math.BigInteger;
       
    30 import sun.security.pkcs.PKCS7;
    29 import sun.security.pkcs.PKCS7;
    31 import sun.security.pkcs.PKCS9Attribute;
       
    32 import sun.security.pkcs.PKCS9Attributes;
       
    33 import sun.security.pkcs.ParsingException;
       
    34 import sun.security.pkcs.SignerInfo;
       
    35 import sun.security.util.DerValue;
    30 import sun.security.util.DerValue;
    36 import sun.security.x509.AlgorithmId;
       
    37 import sun.security.x509.X500Name;
       
    38 
    31 
    39 /**
    32 /**
    40  * This class provides the response corresponding to a timestamp request,
    33  * This class provides the response corresponding to a timestamp request,
    41  * as defined in
    34  * as defined in
    42  * <a href="http://www.ietf.org/rfc/rfc3161.txt">RFC 3161</a>.
    35  * <a href="http://www.ietf.org/rfc/rfc3161.txt">RFC 3161</a>.
   374                 "Bad encoding for timestamp response: " +
   367                 "Bad encoding for timestamp response: " +
   375                 "expected no timeStampToken element to be present");
   368                 "expected no timeStampToken element to be present");
   376         }
   369         }
   377     }
   370     }
   378 
   371 
   379 final static class TimestampException extends IOException {
   372     final static class TimestampException extends IOException {
   380     TimestampException(String message) {
   373         private static final long serialVersionUID = -1631631794891940953L;
   381         super(message);
   374 
       
   375         TimestampException(String message) {
       
   376             super(message);
       
   377         }
   382     }
   378     }
   383 }
   379 }
   384 }