KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > URIParameter


1 /*
2  * @(#)URIParameter.java 1.2 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8
9 package java.security;
10
11 /**
12  * A parameter that contains a URI pointing to data intended for a
13  * PolicySpi or ConfigurationSpi implementation.
14  *
15  * @since 1.6
16  */

17 public class URIParameter implements
18     Policy.Parameters JavaDoc, javax.security.auth.login.Configuration.Parameters JavaDoc {
19
20     private java.net.URI JavaDoc uri;
21
22     /**
23      * Constructs a URIParameter with the URI pointing to
24      * data intended for an SPI implementation.
25      *
26      * @param uri the URI pointing to the data.
27      *
28      * @exception NullPointerException if the specified URI is null.
29      */

30     public URIParameter(java.net.URI JavaDoc uri) {
31     if (uri == null) {
32         throw new NullPointerException JavaDoc("invalid null URI");
33     }
34     this.uri = uri;
35     }
36
37     /**
38      * Returns the URI.
39      *
40      * @return uri the URI.
41      */

42     public java.net.URI JavaDoc getURI() {
43     return uri;
44     }
45 }
46
Popular Tags