/** {@inheritDoc} */ protected X509Options clone() { X509Options clonedOptions = (X509Options) super.clone(); clonedOptions.subjectAltNames = new LazySet<Integer>(); clonedOptions.subjectAltNames.addAll(this.subjectAltNames); clonedOptions.x500DNHandler = this.x500DNHandler.clone(); return clonedOptions; }
/** {@inheritDoc} */ public KeyInfoGenerator newInstance() { //TODO lock options during cloning ? BasicOptions newOptions = options.clone(); return new BasicKeyInfoGenerator(newOptions); }
/** {@inheritDoc} */ public KeyInfoGenerator newInstance() { //TODO lock options during cloning ? BasicOptions newOptions = options.clone(); return new BasicKeyInfoGenerator(newOptions); }
/** * Get a new instance to hold options. Used by the top-level superclass constructor. * Subclasses <strong>MUST</strong> override to produce an instance of the appropriate * subclass of {@link BasicOptions}. * * @return a new instance of factory/generator options */ protected BasicOptions newOptions() { return new BasicOptions(); }
/** {@inheritDoc} */ protected X509Options clone() { X509Options clonedOptions = (X509Options) super.clone(); clonedOptions.subjectAltNames = new LazySet<Integer>(); clonedOptions.subjectAltNames.addAll(this.subjectAltNames); clonedOptions.x500DNHandler = this.x500DNHandler.clone(); return clonedOptions; }
/** * Get a new instance to hold options. Used by the top-level superclass constructor. * Subclasses <strong>MUST</strong> override to produce an instance of the appropriate * subclass of {@link BasicOptions}. * * @return a new instance of factory/generator options */ protected BasicOptions newOptions() { return new BasicOptions(); }