/[classpath]/classpath/java/security/cert/PKIXParameters.java
ViewVC logotype

Diff of /classpath/java/security/cert/PKIXParameters.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.1 by gnu_andrew, Tue Aug 2 20:12:26 2005 UTC revision 1.1.2.2 by tromey, Fri Nov 25 22:18:19 2005 UTC
# Line 55  import java.util.Set; Line 55  import java.util.Set;
55   * Parameters for verifying certificate paths using the PKIX   * Parameters for verifying certificate paths using the PKIX
56   * (Public-Key Infrastructure (X.509)) algorithm.   * (Public-Key Infrastructure (X.509)) algorithm.
57   *   *
58   * @see CertPathBulider   * @see CertPathBuilder
59     * @since 1.4
60   */   */
61  public class PKIXParameters implements CertPathParameters  public class PKIXParameters implements CertPathParameters
62  {  {
# Line 144  public class PKIXParameters implements C Line 145  public class PKIXParameters implements C
145     * @throws ClassCastException If every element in <i>trustAnchors</i>     * @throws ClassCastException If every element in <i>trustAnchors</i>
146     *         is not a {@link TrustAnchor}.     *         is not a {@link TrustAnchor}.
147     */     */
148    public PKIXParameters(Set trustAnchors)    public PKIXParameters(Set<TrustAnchor> trustAnchors)
149      throws InvalidAlgorithmParameterException      throws InvalidAlgorithmParameterException
150    {    {
151      this();      this();
# Line 199  public class PKIXParameters implements C Line 200  public class PKIXParameters implements C
200     *     *
201     * @return A (never null, never empty) immutable set of trust anchors.     * @return A (never null, never empty) immutable set of trust anchors.
202     */     */
203    public Set getTrustAnchors()    public Set<TrustAnchor> getTrustAnchors()
204    {    {
205      return Collections.unmodifiableSet(trustAnchors);      return Collections.unmodifiableSet(trustAnchors);
206    }    }
# Line 216  public class PKIXParameters implements C Line 217  public class PKIXParameters implements C
217     * @throws ClassCastException If every element in <i>trustAnchors</i>     * @throws ClassCastException If every element in <i>trustAnchors</i>
218     *         is not a {@link TrustAnchor}.     *         is not a {@link TrustAnchor}.
219     */     */
220    public void setTrustAnchors(Set trustAnchors)    public void setTrustAnchors(Set<TrustAnchor> trustAnchors)
221      throws InvalidAlgorithmParameterException      throws InvalidAlgorithmParameterException
222    {    {
223      if (trustAnchors.isEmpty())      if (trustAnchors.isEmpty())
# Line 235  public class PKIXParameters implements C Line 236  public class PKIXParameters implements C
236     * @return An immutable set of initial policy OID strings, or the     * @return An immutable set of initial policy OID strings, or the
237     *         empty set if any policy is acceptable.     *         empty set if any policy is acceptable.
238     */     */
239    public Set getInitialPolicies()    public Set<String> getInitialPolicies()
240    {    {
241      return Collections.unmodifiableSet(initPolicies);      return Collections.unmodifiableSet(initPolicies);
242    }    }
# Line 249  public class PKIXParameters implements C Line 250  public class PKIXParameters implements C
250     * @throws ClassCastException If any element in <i>initPolicies</i> is     * @throws ClassCastException If any element in <i>initPolicies</i> is
251     *         not a string.     *         not a string.
252     */     */
253    public void setInitialPolicies(Set initPolicies)    public void setInitialPolicies(Set<String> initPolicies)
254    {    {
255      this.initPolicies.clear();      this.initPolicies.clear();
256      if (initPolicies == null)      if (initPolicies == null)
# Line 277  public class PKIXParameters implements C Line 278  public class PKIXParameters implements C
278     *     *
279     * @return The list of cert stores.     * @return The list of cert stores.
280     */     */
281    public List getCertStores()    public List<CertStore> getCertStores()
282    {    {
283      return Collections.unmodifiableList(certStores);      return Collections.unmodifiableList(certStores);
284    }    }
# Line 288  public class PKIXParameters implements C Line 289  public class PKIXParameters implements C
289     *     *
290     * @param certStores The cert stores.     * @param certStores The cert stores.
291     */     */
292    public void setCertStores(List certStores)    public void setCertStores(List<CertStore> certStores)
293    {    {
294      this.certStores.clear();      this.certStores.clear();
295      if (certStores == null)      if (certStores == null)
# Line 446  public class PKIXParameters implements C Line 447  public class PKIXParameters implements C
447     *     *
448     * @return An immutable list of all certificate path checkers.     * @return An immutable list of all certificate path checkers.
449     */     */
450    public List getCertPathCheckers()    public List<PKIXCertPathChecker> getCertPathCheckers()
451    {    {
452      return Collections.unmodifiableList(pathCheckers);      return Collections.unmodifiableList(pathCheckers);
453    }    }
# Line 459  public class PKIXParameters implements C Line 460  public class PKIXParameters implements C
460     * @throws ClassCastException If any element of <i>pathCheckers</i> is     * @throws ClassCastException If any element of <i>pathCheckers</i> is
461     *         not a {@link PKIXCertPathChecker}.     *         not a {@link PKIXCertPathChecker}.
462     */     */
463    public void setCertPathCheckers(List pathCheckers)    public void setCertPathCheckers(List<PKIXCertPathChecker> pathCheckers)
464    {    {
465      this.pathCheckers.clear();      this.pathCheckers.clear();
466      if (pathCheckers == null)      if (pathCheckers == null)

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26