com.google.api.services.androidmanagement.v1.model.ExtensionConfig Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.androidmanagement.v1.model;
/**
* Configuration to enable an app as an extension app, with the capability of interacting with
* Android Device Policy offline. For Android versions 11 and above, extension apps are exempt from
* battery restrictions so will not be placed into the restricted App Standby Bucket
* (https://developer.android.com/topic/performance/appstandby#restricted-bucket). Extensions apps
* are also protected against users clearing their data or force-closing the application, although
* admins can continue to use the clear app data command on extension apps if needed for Android 11
* and above.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Android Management API. For a detailed explanation
* see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class ExtensionConfig extends com.google.api.client.json.GenericJson {
/**
* Fully qualified class name of the receiver service class for Android Device Policy to notify
* the extension app of any local command status updates.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String notificationReceiver;
/**
* Hex-encoded SHA-256 hash of the signing certificate of the extension app. Only hexadecimal
* string representations of 64 characters are valid.If not specified, the signature for the
* corresponding package name is obtained from the Play Store instead.If this list is empty, the
* signature of the extension app on the device must match the signature obtained from the Play
* Store for the app to be able to communicate with Android Device Policy.If this list is not
* empty, the signature of the extension app on the device must match one of the entries in this
* list for the app to be able to communicate with Android Device Policy.In production use cases,
* it is recommended to leave this empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List signingKeyFingerprintsSha256;
/**
* Fully qualified class name of the receiver service class for Android Device Policy to notify
* the extension app of any local command status updates.
* @return value or {@code null} for none
*/
public java.lang.String getNotificationReceiver() {
return notificationReceiver;
}
/**
* Fully qualified class name of the receiver service class for Android Device Policy to notify
* the extension app of any local command status updates.
* @param notificationReceiver notificationReceiver or {@code null} for none
*/
public ExtensionConfig setNotificationReceiver(java.lang.String notificationReceiver) {
this.notificationReceiver = notificationReceiver;
return this;
}
/**
* Hex-encoded SHA-256 hash of the signing certificate of the extension app. Only hexadecimal
* string representations of 64 characters are valid.If not specified, the signature for the
* corresponding package name is obtained from the Play Store instead.If this list is empty, the
* signature of the extension app on the device must match the signature obtained from the Play
* Store for the app to be able to communicate with Android Device Policy.If this list is not
* empty, the signature of the extension app on the device must match one of the entries in this
* list for the app to be able to communicate with Android Device Policy.In production use cases,
* it is recommended to leave this empty.
* @return value or {@code null} for none
*/
public java.util.List getSigningKeyFingerprintsSha256() {
return signingKeyFingerprintsSha256;
}
/**
* Hex-encoded SHA-256 hash of the signing certificate of the extension app. Only hexadecimal
* string representations of 64 characters are valid.If not specified, the signature for the
* corresponding package name is obtained from the Play Store instead.If this list is empty, the
* signature of the extension app on the device must match the signature obtained from the Play
* Store for the app to be able to communicate with Android Device Policy.If this list is not
* empty, the signature of the extension app on the device must match one of the entries in this
* list for the app to be able to communicate with Android Device Policy.In production use cases,
* it is recommended to leave this empty.
* @param signingKeyFingerprintsSha256 signingKeyFingerprintsSha256 or {@code null} for none
*/
public ExtensionConfig setSigningKeyFingerprintsSha256(java.util.List signingKeyFingerprintsSha256) {
this.signingKeyFingerprintsSha256 = signingKeyFingerprintsSha256;
return this;
}
@Override
public ExtensionConfig set(String fieldName, Object value) {
return (ExtensionConfig) super.set(fieldName, value);
}
@Override
public ExtensionConfig clone() {
return (ExtensionConfig) super.clone();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy