com.google.api.services.chromemanagement.v1.model.GoogleChromeManagementVersionsV1AttestationCredential 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.chromemanagement.v1.model;
/**
* Information of public key associated with a Chrome browser profile.
*
* 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 Chrome 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 GoogleChromeManagementVersionsV1AttestationCredential extends com.google.api.client.json.GenericJson {
/**
* Output only. Latest rotation timestamp of the public key rotation.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private String keyRotationTime;
/**
* Output only. Trust level of the public key.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String keyTrustLevel;
/**
* Output only. Type of the public key.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String keyType;
/**
* Output only. Value of the public key.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String publicKey;
/**
* Output only. Latest rotation timestamp of the public key rotation.
* @return value or {@code null} for none
*/
public String getKeyRotationTime() {
return keyRotationTime;
}
/**
* Output only. Latest rotation timestamp of the public key rotation.
* @param keyRotationTime keyRotationTime or {@code null} for none
*/
public GoogleChromeManagementVersionsV1AttestationCredential setKeyRotationTime(String keyRotationTime) {
this.keyRotationTime = keyRotationTime;
return this;
}
/**
* Output only. Trust level of the public key.
* @return value or {@code null} for none
*/
public java.lang.String getKeyTrustLevel() {
return keyTrustLevel;
}
/**
* Output only. Trust level of the public key.
* @param keyTrustLevel keyTrustLevel or {@code null} for none
*/
public GoogleChromeManagementVersionsV1AttestationCredential setKeyTrustLevel(java.lang.String keyTrustLevel) {
this.keyTrustLevel = keyTrustLevel;
return this;
}
/**
* Output only. Type of the public key.
* @return value or {@code null} for none
*/
public java.lang.String getKeyType() {
return keyType;
}
/**
* Output only. Type of the public key.
* @param keyType keyType or {@code null} for none
*/
public GoogleChromeManagementVersionsV1AttestationCredential setKeyType(java.lang.String keyType) {
this.keyType = keyType;
return this;
}
/**
* Output only. Value of the public key.
* @see #decodePublicKey()
* @return value or {@code null} for none
*/
public java.lang.String getPublicKey() {
return publicKey;
}
/**
* Output only. Value of the public key.
* @see #getPublicKey()
* @return Base64 decoded value or {@code null} for none
*
* @since 1.14
*/
public byte[] decodePublicKey() {
return com.google.api.client.util.Base64.decodeBase64(publicKey);
}
/**
* Output only. Value of the public key.
* @see #encodePublicKey()
* @param publicKey publicKey or {@code null} for none
*/
public GoogleChromeManagementVersionsV1AttestationCredential setPublicKey(java.lang.String publicKey) {
this.publicKey = publicKey;
return this;
}
/**
* Output only. Value of the public key.
* @see #setPublicKey()
*
*
* The value is encoded Base64 or {@code null} for none.
*
*
* @since 1.14
*/
public GoogleChromeManagementVersionsV1AttestationCredential encodePublicKey(byte[] publicKey) {
this.publicKey = com.google.api.client.util.Base64.encodeBase64URLSafeString(publicKey);
return this;
}
@Override
public GoogleChromeManagementVersionsV1AttestationCredential set(String fieldName, Object value) {
return (GoogleChromeManagementVersionsV1AttestationCredential) super.set(fieldName, value);
}
@Override
public GoogleChromeManagementVersionsV1AttestationCredential clone() {
return (GoogleChromeManagementVersionsV1AttestationCredential) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy