com.google.crypto.tink.proto.RsaSsaPssParams Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/rsa_ssa_pss.proto
// Protobuf Java Version: 4.28.2
package com.google.crypto.tink.proto;
/**
* Protobuf type {@code google.crypto.tink.RsaSsaPssParams}
*/
public final class RsaSsaPssParams extends
com.google.protobuf.GeneratedMessageLite<
RsaSsaPssParams, RsaSsaPssParams.Builder> implements
// @@protoc_insertion_point(message_implements:google.crypto.tink.RsaSsaPssParams)
RsaSsaPssParamsOrBuilder {
private RsaSsaPssParams() {
}
public static final int SIG_HASH_FIELD_NUMBER = 1;
private int sigHash_;
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @return The enum numeric value on the wire for sigHash.
*/
@java.lang.Override
public int getSigHashValue() {
return sigHash_;
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @return The sigHash.
*/
@java.lang.Override
public com.google.crypto.tink.proto.HashType getSigHash() {
com.google.crypto.tink.proto.HashType result = com.google.crypto.tink.proto.HashType.forNumber(sigHash_);
return result == null ? com.google.crypto.tink.proto.HashType.UNRECOGNIZED : result;
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @param value The enum numeric value on the wire for sigHash to set.
*/
private void setSigHashValue(int value) {
sigHash_ = value;
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @param value The sigHash to set.
*/
private void setSigHash(com.google.crypto.tink.proto.HashType value) {
sigHash_ = value.getNumber();
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
*/
private void clearSigHash() {
sigHash_ = 0;
}
public static final int MGF1_HASH_FIELD_NUMBER = 2;
private int mgf1Hash_;
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @return The enum numeric value on the wire for mgf1Hash.
*/
@java.lang.Override
public int getMgf1HashValue() {
return mgf1Hash_;
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @return The mgf1Hash.
*/
@java.lang.Override
public com.google.crypto.tink.proto.HashType getMgf1Hash() {
com.google.crypto.tink.proto.HashType result = com.google.crypto.tink.proto.HashType.forNumber(mgf1Hash_);
return result == null ? com.google.crypto.tink.proto.HashType.UNRECOGNIZED : result;
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @param value The enum numeric value on the wire for mgf1Hash to set.
*/
private void setMgf1HashValue(int value) {
mgf1Hash_ = value;
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @param value The mgf1Hash to set.
*/
private void setMgf1Hash(com.google.crypto.tink.proto.HashType value) {
mgf1Hash_ = value.getNumber();
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
*/
private void clearMgf1Hash() {
mgf1Hash_ = 0;
}
public static final int SALT_LENGTH_FIELD_NUMBER = 3;
private int saltLength_;
/**
*
* Salt length (see https://tools.ietf.org/html/rfc8017#section-9.1.1)
* Required.
*
*
* int32 salt_length = 3;
* @return The saltLength.
*/
@java.lang.Override
public int getSaltLength() {
return saltLength_;
}
/**
*
* Salt length (see https://tools.ietf.org/html/rfc8017#section-9.1.1)
* Required.
*
*
* int32 salt_length = 3;
* @param value The saltLength to set.
*/
private void setSaltLength(int value) {
saltLength_ = value;
}
/**
*
* Salt length (see https://tools.ietf.org/html/rfc8017#section-9.1.1)
* Required.
*
*
* int32 salt_length = 3;
*/
private void clearSaltLength() {
saltLength_ = 0;
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.google.crypto.tink.proto.RsaSsaPssParams prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code google.crypto.tink.RsaSsaPssParams}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.crypto.tink.proto.RsaSsaPssParams, Builder> implements
// @@protoc_insertion_point(builder_implements:google.crypto.tink.RsaSsaPssParams)
com.google.crypto.tink.proto.RsaSsaPssParamsOrBuilder {
// Construct using com.google.crypto.tink.proto.RsaSsaPssParams.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @return The enum numeric value on the wire for sigHash.
*/
@java.lang.Override
public int getSigHashValue() {
return instance.getSigHashValue();
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @param value The sigHash to set.
* @return This builder for chaining.
*/
public Builder setSigHashValue(int value) {
copyOnWrite();
instance.setSigHashValue(value);
return this;
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @return The sigHash.
*/
@java.lang.Override
public com.google.crypto.tink.proto.HashType getSigHash() {
return instance.getSigHash();
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @param value The enum numeric value on the wire for sigHash to set.
* @return This builder for chaining.
*/
public Builder setSigHash(com.google.crypto.tink.proto.HashType value) {
copyOnWrite();
instance.setSigHash(value);
return this;
}
/**
*
* Hash function used in computing hash of the signing message
* (see https://tools.ietf.org/html/rfc8017#section-9.1.1).
* Required.
*
*
* .google.crypto.tink.HashType sig_hash = 1;
* @return This builder for chaining.
*/
public Builder clearSigHash() {
copyOnWrite();
instance.clearSigHash();
return this;
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @return The enum numeric value on the wire for mgf1Hash.
*/
@java.lang.Override
public int getMgf1HashValue() {
return instance.getMgf1HashValue();
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @param value The mgf1Hash to set.
* @return This builder for chaining.
*/
public Builder setMgf1HashValue(int value) {
copyOnWrite();
instance.setMgf1HashValue(value);
return this;
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @return The mgf1Hash.
*/
@java.lang.Override
public com.google.crypto.tink.proto.HashType getMgf1Hash() {
return instance.getMgf1Hash();
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @param value The enum numeric value on the wire for mgf1Hash to set.
* @return This builder for chaining.
*/
public Builder setMgf1Hash(com.google.crypto.tink.proto.HashType value) {
copyOnWrite();
instance.setMgf1Hash(value);
return this;
}
/**
*
* Hash function used in MGF1 (a mask generation function based on a
* hash function) (see https://tools.ietf.org/html/rfc8017#appendix-B.2.1).
* Required.
*
*
* .google.crypto.tink.HashType mgf1_hash = 2;
* @return This builder for chaining.
*/
public Builder clearMgf1Hash() {
copyOnWrite();
instance.clearMgf1Hash();
return this;
}
/**
*
* Salt length (see https://tools.ietf.org/html/rfc8017#section-9.1.1)
* Required.
*
*
* int32 salt_length = 3;
* @return The saltLength.
*/
@java.lang.Override
public int getSaltLength() {
return instance.getSaltLength();
}
/**
*
* Salt length (see https://tools.ietf.org/html/rfc8017#section-9.1.1)
* Required.
*
*
* int32 salt_length = 3;
* @param value The saltLength to set.
* @return This builder for chaining.
*/
public Builder setSaltLength(int value) {
copyOnWrite();
instance.setSaltLength(value);
return this;
}
/**
*
* Salt length (see https://tools.ietf.org/html/rfc8017#section-9.1.1)
* Required.
*
*
* int32 salt_length = 3;
* @return This builder for chaining.
*/
public Builder clearSaltLength() {
copyOnWrite();
instance.clearSaltLength();
return this;
}
// @@protoc_insertion_point(builder_scope:google.crypto.tink.RsaSsaPssParams)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.crypto.tink.proto.RsaSsaPssParams();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"sigHash_",
"mgf1Hash_",
"saltLength_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\f\u0002\f\u0003" +
"\u0004";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.google.crypto.tink.proto.RsaSsaPssParams.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.crypto.tink.RsaSsaPssParams)
private static final com.google.crypto.tink.proto.RsaSsaPssParams DEFAULT_INSTANCE;
static {
RsaSsaPssParams defaultInstance = new RsaSsaPssParams();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
RsaSsaPssParams.class, defaultInstance);
}
public static com.google.crypto.tink.proto.RsaSsaPssParams getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy