|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
KeyStoreMetaData.java | 0% | 0% | 0% | 0% |
|
1 |
/*
|
|
2 |
* Copyright (C) The Spice Group. All rights reserved.
|
|
3 |
*
|
|
4 |
* This software is published under the terms of the Spice
|
|
5 |
* Software License version 1.1, a copy of which has been included
|
|
6 |
* with this distribution in the LICENSE.txt file.
|
|
7 |
*/
|
|
8 |
package org.codehaus.spice.xmlpolicy.metadata;
|
|
9 |
|
|
10 |
/**
|
|
11 |
* This class defines a keystore that is used when locating
|
|
12 |
* signers of a codebase.
|
|
13 |
*
|
|
14 |
* @author Peter Donald
|
|
15 |
* @version $Revision: 1.1 $ $Date: 2003/12/02 09:16:06 $
|
|
16 |
*/
|
|
17 |
public class KeyStoreMetaData |
|
18 |
{ |
|
19 |
/**
|
|
20 |
* The name of the keystore. Used by Grants to
|
|
21 |
* refer to particular key stores.
|
|
22 |
*/
|
|
23 |
private final String m_name;
|
|
24 |
|
|
25 |
/**
|
|
26 |
* The location of the keystore (usually a URL).
|
|
27 |
*/
|
|
28 |
private final String m_location;
|
|
29 |
|
|
30 |
/**
|
|
31 |
* The type of the keystore.
|
|
32 |
*/
|
|
33 |
private final String m_type;
|
|
34 |
|
|
35 |
/**
|
|
36 |
* Construct a keysotre.
|
|
37 |
*
|
|
38 |
* @param name the name of the key store
|
|
39 |
* @param location the location of keystore
|
|
40 |
* @param type the keystore type
|
|
41 |
*/
|
|
42 | 0 |
public KeyStoreMetaData( final String name,
|
43 |
final String location, |
|
44 |
final String type ) |
|
45 |
{ |
|
46 | 0 |
if( null == name ) |
47 |
{ |
|
48 | 0 |
throw new NullPointerException( "name" ); |
49 |
} |
|
50 | 0 |
if( null == location ) |
51 |
{ |
|
52 | 0 |
throw new NullPointerException( "location" ); |
53 |
} |
|
54 | 0 |
if( null == type ) |
55 |
{ |
|
56 | 0 |
throw new NullPointerException( "type" ); |
57 |
} |
|
58 |
|
|
59 | 0 |
m_name = name; |
60 | 0 |
m_location = location; |
61 | 0 |
m_type = type; |
62 |
} |
|
63 |
|
|
64 |
/**
|
|
65 |
* Return the name of keystore.
|
|
66 |
*
|
|
67 |
* @return the name of keystore.
|
|
68 |
*/
|
|
69 | 0 |
public String getName()
|
70 |
{ |
|
71 | 0 |
return m_name;
|
72 |
} |
|
73 |
|
|
74 |
/**
|
|
75 |
* Return the location of the KeyStore (usually a URL).
|
|
76 |
*
|
|
77 |
* @return the location of the KeyStore (usually a URL).
|
|
78 |
*/
|
|
79 | 0 |
public String getLocation()
|
80 |
{ |
|
81 | 0 |
return m_location;
|
82 |
} |
|
83 |
|
|
84 |
/**
|
|
85 |
* Return the type of the key store (ie JKS).
|
|
86 |
*
|
|
87 |
* @return the type of the key store (ie JKS).
|
|
88 |
*/
|
|
89 | 0 |
public String getType()
|
90 |
{ |
|
91 | 0 |
return m_type;
|
92 |
} |
|
93 |
} |
|
94 |
|
|