code: public Date getGeneralizedTime() throws IOException {
          if (buffer.read() != DerValue.tag_GeneralizedTime)
              throw new IOException("DER input, GeneralizedTime tag invalid ");
          return buffer.getGeneralizedTime(getLength(buffer));
      }
docs: Get a Generalized encoded time value from the input stream.