First page Back Continue Last page Summary Graphics
Principal example
/**
* a principal that contains the associated attributes of
* an JNDI Directory Entry
*/
Public class PrincipalAttributes implements Attributes,Principal {
private String name;//an entry name
private Attributes attrs;
public PrincipalAttributes(String name,Attributes attrs){
this.name=name;
this.attrs=attrs;
}
public String getName(){
return name;
}
...
}
Notes: