version-1.30
Last change
on this file since 7321a43 was
8780cbec,
checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago
|
ABAC sources from Cobham
|
-
Property mode set to
100644
|
File size:
626 bytes
|
Line | |
---|
1 | /* |
---|
2 | * RoleName.java |
---|
3 | */ |
---|
4 | |
---|
5 | package edu.stanford.peer.rbtm.credential; |
---|
6 | |
---|
7 | public class SimpleRoleName implements RoleName |
---|
8 | { |
---|
9 | private String _name; |
---|
10 | |
---|
11 | public SimpleRoleName(String n) { _name = n; } |
---|
12 | |
---|
13 | public String getName() { return _name; } |
---|
14 | |
---|
15 | public String toString() { return _name; } |
---|
16 | |
---|
17 | public int hashCode() { return _name.hashCode(); } |
---|
18 | |
---|
19 | public boolean equals(Object o) { |
---|
20 | return (o instanceof SimpleRoleName) |
---|
21 | && _name.equals(((SimpleRoleName)o)._name); |
---|
22 | } |
---|
23 | |
---|
24 | public int compareTo(Object o) { |
---|
25 | return _name.compareTo(((SimpleRoleName)o)._name); |
---|
26 | } |
---|
27 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.