org.n52.security.common.subject
Interface Scope

All Superinterfaces:
Serializable
All Known Implementing Classes:
AttributePrincipal, LoginNamePrincipal, NamedScope, NamePrincipal, RolePrincipal, URIScope, UsernameIDPrincipal

public interface Scope
extends Serializable

A scope is, e.g. a name of an application or an namespace or a URN. It is used to define and reduce the visibility and validity of a name objects.

It shall be possible to build chains of scopes, e.g. you can use scope instance to identify a special application and then associate other scope instances with the previous created applicaton scope.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 16.09.2007

Field Summary
static Scope GLOBAL
          static final Field GLOBAL represents the GLOBAL-Scope, it is returned in the getScope() method to indicate that there is no further parent.
 
Method Summary
 String getName()
          Gets the name of the scope.
 Scope getScope()
          Gets the 'parent' scope of this scope.
 

Field Detail

GLOBAL

static final Scope GLOBAL
static final Field GLOBAL represents the GLOBAL-Scope, it is returned in the getScope() method to indicate that there is no further parent.

Method Detail

getName

String getName()
Gets the name of the scope.

Returns:
String.

getScope

Scope getScope()
Gets the 'parent' scope of this scope.

This method must not return null. To indicate that no further scope exist the GLOBAL scope shall returned.

Returns:
Scope.


Copyright © 2004–2013 52north.org. All rights reserved.