Class SCertStore


  • public class SCertStore
    extends java.lang.Object
    Class for loading / saving the certificate store.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String ENCODED_NAME_PREFIX
      Prefix for encoded names.
    • Constructor Summary

      Constructors 
      Constructor Description
      SCertStore()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static boolean allowPlain​(java.lang.String name)
      Check if plain name encoding is allowed.
      static java.util.Map<java.lang.String,​PemKeyPair> loadCertStore​(byte[] storedata)
      Loads the cert store.
      static byte[] saveCertStore​(java.util.Collection<PemKeyPair> certs)
      Saves the cert store.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ENCODED_NAME_PREFIX

        protected static final java.lang.String ENCODED_NAME_PREFIX
        Prefix for encoded names.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SCertStore

        public SCertStore()
    • Method Detail

      • loadCertStore

        public static final java.util.Map<java.lang.String,​PemKeyPair> loadCertStore​(byte[] storedata)
        Loads the cert store.
        Parameters:
        storedata - Cert store as binary.
        Returns:
        return Certs.
      • saveCertStore

        public static byte[] saveCertStore​(java.util.Collection<PemKeyPair> certs)
        Saves the cert store.
        Parameters:
        certs - The certs.
        Returns:
        Cert store as binary.
      • allowPlain

        protected static final boolean allowPlain​(java.lang.String name)
        Check if plain name encoding is allowed.
        Parameters:
        name - Name.
        Returns:
        True, if allowed.