org.eclipse.osgi.internal.provisional.service.security
Class AuthorizationEvent

java.lang.Object
  extended by org.eclipse.osgi.internal.provisional.service.security.AuthorizationEvent

public class AuthorizationEvent
extends Object

An event that is fired when an AuthorizationEngine implementation makes a decision.

Since:
3.4

Field Summary
static int ALLOWED
          Result code meaning that the operation was allowed
static int DENIED
          Result code meaning that the operation was denied
 
Constructor Summary
AuthorizationEvent(int result, SignedContent content, Object context, int severity)
          Create a new AuthorizationEvent
 
Method Summary
 Object getContext()
          Get the operation specific context
 int getResult()
          Get the result code
 int getSeverity()
          get the severity
 SignedContent getSignedContent()
          Get the SignedContent object being evaluated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOWED

public static final int ALLOWED
Result code meaning that the operation was allowed

See Also:
Constant Field Values

DENIED

public static final int DENIED
Result code meaning that the operation was denied

See Also:
Constant Field Values
Constructor Detail

AuthorizationEvent

public AuthorizationEvent(int result,
                          SignedContent content,
                          Object context,
                          int severity)
Create a new AuthorizationEvent

Parameters:
result - - the result code
content - - the signed content
context - - operation specific context
severity - - severity code
Method Detail

getResult

public int getResult()
Get the result code

Returns:
- the result code

getSeverity

public int getSeverity()
get the severity

Returns:
- the severity

getSignedContent

public SignedContent getSignedContent()
Get the SignedContent object being evaluated

Returns:
- SignedContent

getContext

public Object getContext()
Get the operation specific context

Returns:
- context


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.