/**@class android.service.oemlock.OemLockManager
@extends java.lang.Object

 Interface for managing the OEM lock on the device.

 This will only be available if the device implements OEM lock protection.

 Multiple actors have an opinion on whether the device can be OEM unlocked and they must all be in
 agreement for unlock to be possible.

 @hide
*/
var OemLockManager = {

/**Returns a vendor specific name for the OEM lock.

 This value is used to identify the security protocol used by locks.
@return {String} The name of the OEM lock or {@code null} if failed to get the name.
*/
getLockName : function(  ) {},

/**Sets whether the carrier has allowed this device to be OEM unlocked.

 Depending on the implementation, the validity of the request might need to be proved. This
 can be acheived by passing a signature that the system will use to verify the request is
 legitimate.

 All actors involved must agree for OEM unlock to be possible.
@param {Boolean} allowed Whether the device should be allowed to be unlocked.
@param {Object {byte[]}} signature Optional proof of request validity, {@code null} for none.
@throws IllegalArgumentException if a signature is required but was not provided.
@throws SecurityException if the wrong signature was provided.
@see #isOemUnlockAllowedByCarrier()
*/
setOemUnlockAllowedByCarrier : function(  ) {},

/**Returns whether the carrier has allowed this device to be OEM unlocked.
@return {Boolean} Whether OEM unlock is allowed by the carrier, or true if no OEM lock is present.
@see #setOemUnlockAllowedByCarrier(boolean, byte[])
*/
isOemUnlockAllowedByCarrier : function(  ) {},

/**Sets whether the user has allowed this device to be unlocked.

 All actors involved must agree for OEM unlock to be possible.
@param {Boolean} allowed Whether the device should be allowed to be unlocked.
@throws SecurityException if the user is not allowed to unlock the device.
@see #isOemUnlockAllowedByUser()
*/
setOemUnlockAllowedByUser : function(  ) {},

/**Returns whether, or not, the user has allowed this device to be OEM unlocked.
@return {Boolean} Whether OEM unlock is allowed by the user, or true if no OEM lock is present.
@see #setOemUnlockAllowedByUser(boolean)
*/
isOemUnlockAllowedByUser : function(  ) {},

/**
@return {Boolean} Whether the bootloader is able to OEM unlock the device.
@hide 
*/
isOemUnlockAllowed : function(  ) {},

/**
@return {Boolean} Whether the device has been OEM unlocked by the bootloader.
@hide 
*/
isDeviceOemUnlocked : function(  ) {},


};