@Override public Object getDecodedObject(BerInputStream in) { return new GeneralNames((List<GeneralName>) in.content, in.getEncoded()); }
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append((which) ? "Subject" : "Issuer").append(" Alternative Names [\n"); alternativeNames.dumpValue(sb, prefix + " "); sb.append(prefix).append("]\n"); } }
names = (bytes == null) ? new ArrayList<GeneralName>(1) // will check the subject field only : ((GeneralNames) GeneralNames.ASN1.decode(bytes)).getNames(); } catch (IOException e) {
/** * Given an X.509 extension that encodes GeneralNames, return it in the * format expected by APIs. */ private static Collection<List<?>> decodeGeneralNames(Extension extension) throws IOException { if (extension == null) { return null; } Collection<List<?>> collection = ((GeneralNames) GeneralNames.ASN1.decode(extension .getExtnValue())).getPairsList(); /* * If the extension had any invalid entries, we may have an empty * collection at this point, so just return null. */ if (collection.size() == 0) { return null; } return Collections.unmodifiableCollection(collection); }
/** * Given an X.509 extension that encodes GeneralNames, return it in the * format expected by APIs. */ private static Collection<List<?>> decodeGeneralNames(Extension extension) throws IOException { if (extension == null) { return null; } Collection<List<?>> collection = ((GeneralNames) GeneralNames.ASN1.decode(extension .getExtnValue())).getPairsList(); /* * If the extension had any invalid entries, we may have an empty * collection at this point, so just return null. */ if (collection.size() == 0) { return null; } return Collections.unmodifiableCollection(collection); }
public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix); sb.append("Distribution Point Name: [\n"); if (fullName != null) { fullName.dumpValue(sb, prefix + " "); } else { sb.append(prefix); sb.append(" "); sb.append(nameRelativeToCRLIssuer.getName(X500Principal.RFC2253)); } sb.append(prefix); sb.append("]\n"); }
.getNames(); if ((sans == null) || (sans.size() == 0)) { return false;
@Override public Object getDecodedObject(BerInputStream in) { return new GeneralNames((List<GeneralName>) in.content, in.getEncoded()); }
/** * Given an X.509 extension that encodes GeneralNames, return it in the * format expected by APIs. */ private static Collection<List<?>> decodeGeneralNames(Extension extension) throws IOException { if (extension == null) { return null; } Collection<List<?>> collection = ((GeneralNames) GeneralNames.ASN1.decode(extension .getExtnValue())).getPairsList(); /* * If the extension had any invalid entries, we may have an empty * collection at this point, so just return null. */ if (collection.size() == 0) { return null; } return Collections.unmodifiableCollection(collection); }
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append("AuthorityKeyIdentifier [\n"); if (keyIdentifier != null) { sb.append(prefix).append(" keyIdentifier:\n"); sb.append(Array.toString(keyIdentifier, prefix + " ")); } if (authorityCertIssuer != null) { sb.append(prefix).append(" authorityCertIssuer: [\n"); authorityCertIssuer.dumpValue(sb, prefix + " "); sb.append(prefix).append(" ]\n"); } if (authorityCertSerialNumber != null) { sb.append(prefix).append(" authorityCertSerialNumber: "); sb.append(authorityCertSerialNumber).append('\n'); } sb.append(prefix).append("]\n"); }
names = (bytes == null) ? new ArrayList<GeneralName>(1) // will check the subject field only : ((GeneralNames) GeneralNames.ASN1.decode(bytes)).getNames(); } catch (IOException e) {
@Override public Object getDecodedObject(BerInputStream in) { return new GeneralNames((List<GeneralName>) in.content, in.getEncoded()); }
/** * Given an X.509 extension that encodes GeneralNames, return it in the * format expected by APIs. */ private static Collection<List<?>> decodeGeneralNames(Extension extension) throws IOException { if (extension == null) { return null; } Collection<List<?>> collection = ((GeneralNames) GeneralNames.ASN1.decode(extension .getExtnValue())).getPairsList(); /* * If the extension had any invalid entries, we may have an empty * collection at this point, so just return null. */ if (collection.size() == 0) { return null; } return Collections.unmodifiableCollection(collection); }
public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix); sb.append("Distribution Point: [\n"); if (distributionPoint != null) { distributionPoint.dumpValue(sb, prefix + " "); } if (reasons != null) { reasons.dumpValue(sb, prefix + " "); } if (cRLIssuer != null) { sb.append(prefix); sb.append(" CRL Issuer: [\n"); cRLIssuer.dumpValue(sb, prefix + " "); sb.append(prefix); sb.append(" ]\n"); } sb.append(prefix); sb.append("]\n"); }
names = (bytes == null) ? new ArrayList<GeneralName>(1) // will check the subject field only : ((GeneralNames) GeneralNames.ASN1.decode(bytes)).getNames(); } catch (IOException e) {
@Override public Object getDecodedObject(BerInputStream in) { return new GeneralNames((List<GeneralName>) in.content, in.getEncoded()); }
/** * Given an X.509 extension that encodes GeneralNames, return it in the * format expected by APIs. */ private static Collection<List<?>> decodeGeneralNames(Extension extension) throws IOException { if (extension == null) { return null; } Collection<List<?>> collection = ((GeneralNames) GeneralNames.ASN1.decode(extension .getExtnValue())).getPairsList(); /* * If the extension had any invalid entries, we may have an empty * collection at this point, so just return null. */ if (collection.size() == 0) { return null; } return Collections.unmodifiableCollection(collection); }
@Override public void dumpValue(StringBuilder sb, String prefix) { sb.append(prefix).append((which) ? "Subject" : "Issuer").append(" Alternative Names [\n"); alternativeNames.dumpValue(sb, prefix + " "); sb.append(prefix).append("]\n"); } }
names = (bytes == null) ? new ArrayList<GeneralName>(1) // will check the subject field only : ((GeneralNames) GeneralNames.ASN1.decode(bytes)).getNames(); } catch (IOException e) {
@Override public Object getDecodedObject(BerInputStream in) { return new GeneralNames((List<GeneralName>) in.content, in.getEncoded()); }