source: fedd/abac-src/rtml/src/edu/stanford/rt/datatype/KeyType.java @ 8780cbec

axis_examplecompt_changesinfo-opsversion-1.30version-2.00version-3.01version-3.02
Last change on this file since 8780cbec was 8780cbec, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

ABAC sources from Cobham

  • Property mode set to 100644
File size: 873 bytes
Line 
1package edu.stanford.rt.datatype;
2
3/**
4 *  Note: This class is not useable.
5 *
6    There could be multiple KeyTypes in the system; however, they
7    can never be mixed.  Therefore, one cannot declare
8    is the super class of all data type classes that can have
9    a simple value, it requires its subclasses to check for legal values
10*/
11public class KeyType extends SimpleType
12{
13    public static final String DSA = "DSAKeyType";
14    public static final String RSA = "RSAKeyType";
15
16    public KeyType(String name)
17    {
18        super(name);
19    }
20
21    /** Check if the DataValue o is a legal value for its type. */
22    public boolean isValidValue(DataValue value)
23    {
24        if(! (value instanceof KeyValue))
25            return false;
26           
27        // TODO, some other test????
28       
29        return true;
30    }
31   
32   
33}
Note: See TracBrowser for help on using the repository browser.