org.openregistry.core.web.resources.config
Interface LockExtractor

All Known Implementing Classes:
DefaultLockExtractor

public interface LockExtractor

Strategy for determining how locks are created for the RESTful API for the Activation Keys.

Since:
0.1
Version:
$Revision$ $Date$

Method Summary
 java.lang.String extract(java.security.Principal principal, java.lang.String lockValue)
          Extracts the lock from either the principal or the lock value provided (or some other method, combining the two).
 

Method Detail

extract

java.lang.String extract(java.security.Principal principal,
                         java.lang.String lockValue)
Extracts the lock from either the principal or the lock value provided (or some other method, combining the two).

Parameters:
principal - the principal to extract the lock from.
lockValue - the potential value of the lock.
Returns:
the lock. CANNOT be NULL.


Copyright © 2009-2012 JA-SIG, Inc.. All Rights Reserved.