code: private static ASN1Sequence getAltnameSequence(final byte[] sanValue) {
          try (val bInput = new ByteArrayInputStream(sanValue);
               val input = new ASN1InputStream(bInput)) {
              return ASN1Sequence.getInstance(input.readObject());
          } catch (final IOException e) {
              LOGGER.error("An error has occurred while reading the subject alternative name value", e);
          }
          return null;
      }
docs: Get alt name seq.
  
  @param sanValue subject alternative name value encoded as byte[]
  @return ASN1Sequence abstraction representing subject alternative name
  @see <a href="http://docs.oracle.com/javase/7/docs/api/java/security/cert/X509Certificate.html#getSubjectAlternativeNames()">
  X509Certificate#getSubjectAlternativeNames</a>