
com.google.api.services.containeranalysis.v1.model.EnvelopeSignature 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.containeranalysis.v1.model;
/**
* Model definition for EnvelopeSignature.
*
* 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 Container Analysis 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 EnvelopeSignature extends com.google.api.client.json.GenericJson {
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String keyid;
/**
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String sig;
/**
* @return value or {@code null} for none
*/
public java.lang.String getKeyid() {
return keyid;
}
/**
* @param keyid keyid or {@code null} for none
*/
public EnvelopeSignature setKeyid(java.lang.String keyid) {
this.keyid = keyid;
return this;
}
/**
* @see #decodeSig()
* @return value or {@code null} for none
*/
public java.lang.String getSig() {
return sig;
}
/**
* @see #getSig()
* @return Base64 decoded value or {@code null} for none
*
* @since 1.14
*/
public byte[] decodeSig() {
return com.google.api.client.util.Base64.decodeBase64(sig);
}
/**
* @see #encodeSig()
* @param sig sig or {@code null} for none
*/
public EnvelopeSignature setSig(java.lang.String sig) {
this.sig = sig;
return this;
}
/**
* @see #setSig()
*
*
* The value is encoded Base64 or {@code null} for none.
*
*
* @since 1.14
*/
public EnvelopeSignature encodeSig(byte[] sig) {
this.sig = com.google.api.client.util.Base64.encodeBase64URLSafeString(sig);
return this;
}
@Override
public EnvelopeSignature set(String fieldName, Object value) {
return (EnvelopeSignature) super.set(fieldName, value);
}
@Override
public EnvelopeSignature clone() {
return (EnvelopeSignature) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy