Annotation Interface Unique


@Retention(RUNTIME) @Target(TYPE) public @interface Unique

Annotates implementations Principal which are only intended to have a single instance present in a Subject's principals.

Annotated classes may then be used with Subject.uniquePrincipalOfType(Class).