KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > update > internal > security > KeystoreHandle


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.update.internal.security;
12
13 import java.net.*;
14
15
16  
17 /**
18  * Manages a handle to a keystore
19  */

20 public class KeystoreHandle {
21     
22     private URL location;
23     private String JavaDoc type;
24     
25     public KeystoreHandle(URL url, String JavaDoc type){
26         this.location = url;
27         this.type = type;
28     }
29
30     /**
31      * Gets the location.
32      * @return Returns a URL
33      */

34     public URL getLocation() {
35         return location;
36     }
37
38     /**
39      * Sets the location.
40      * @param location The location to set
41      */

42     public void setLocation(URL location) {
43         this.location = location;
44     }
45
46     /**
47      * Gets the type.
48      * @return Returns a String
49      */

50     public String JavaDoc getType() {
51         return type;
52     }
53
54     /**
55      * Sets the type.
56      * @param type The type to set
57      */

58     public void setType(String JavaDoc type) {
59         this.type = type;
60     }
61
62 }
63
Popular Tags