Class Jwk.Builder (2.15.0)

public static final class Jwk.Builder extends GeneratedMessageV3.Builder<Jwk.Builder> implements JwkOrBuilder

Jwk is a JSON Web Key as specified in RFC 7517

Protobuf type google.container.v1.Jwk

Implements

JwkOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Jwk.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Jwk.Builder
Overrides

build()

public Jwk build()
Returns
TypeDescription
Jwk

buildPartial()

public Jwk buildPartial()
Returns
TypeDescription
Jwk

clear()

public Jwk.Builder clear()
Returns
TypeDescription
Jwk.Builder
Overrides

clearAlg()

public Jwk.Builder clearAlg()

Algorithm.

string alg = 2;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearCrv()

public Jwk.Builder clearCrv()

Used for ECDSA keys.

string crv = 9;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearE()

public Jwk.Builder clearE()

Used for RSA keys.

string e = 6;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Jwk.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Jwk.Builder
Overrides

clearKid()

public Jwk.Builder clearKid()

Key ID.

string kid = 4;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearKty()

public Jwk.Builder clearKty()

Key Type.

string kty = 1;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearN()

public Jwk.Builder clearN()

Used for RSA keys.

string n = 5;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Jwk.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Jwk.Builder
Overrides

clearUse()

public Jwk.Builder clearUse()

Permitted uses for the public keys.

string use = 3;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearX()

public Jwk.Builder clearX()

Used for ECDSA keys.

string x = 7;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clearY()

public Jwk.Builder clearY()

Used for ECDSA keys.

string y = 8;

Returns
TypeDescription
Jwk.Builder

This builder for chaining.

clone()

public Jwk.Builder clone()
Returns
TypeDescription
Jwk.Builder
Overrides

getAlg()

public String getAlg()

Algorithm.

string alg = 2;

Returns
TypeDescription
String

The alg.

getAlgBytes()

public ByteString getAlgBytes()

Algorithm.

string alg = 2;

Returns
TypeDescription
ByteString

The bytes for alg.

getCrv()

public String getCrv()

Used for ECDSA keys.

string crv = 9;

Returns
TypeDescription
String

The crv.

getCrvBytes()

public ByteString getCrvBytes()

Used for ECDSA keys.

string crv = 9;

Returns
TypeDescription
ByteString

The bytes for crv.

getDefaultInstanceForType()

public Jwk getDefaultInstanceForType()
Returns
TypeDescription
Jwk

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getE()

public String getE()

Used for RSA keys.

string e = 6;

Returns
TypeDescription
String

The e.

getEBytes()

public ByteString getEBytes()

Used for RSA keys.

string e = 6;

Returns
TypeDescription
ByteString

The bytes for e.

getKid()

public String getKid()

Key ID.

string kid = 4;

Returns
TypeDescription
String

The kid.

getKidBytes()

public ByteString getKidBytes()

Key ID.

string kid = 4;

Returns
TypeDescription
ByteString

The bytes for kid.

getKty()

public String getKty()

Key Type.

string kty = 1;

Returns
TypeDescription
String

The kty.

getKtyBytes()

public ByteString getKtyBytes()

Key Type.

string kty = 1;

Returns
TypeDescription
ByteString

The bytes for kty.

getN()

public String getN()

Used for RSA keys.

string n = 5;

Returns
TypeDescription
String

The n.

getNBytes()

public ByteString getNBytes()

Used for RSA keys.

string n = 5;

Returns
TypeDescription
ByteString

The bytes for n.

getUse()

public String getUse()

Permitted uses for the public keys.

string use = 3;

Returns
TypeDescription
String

The use.

getUseBytes()

public ByteString getUseBytes()

Permitted uses for the public keys.

string use = 3;

Returns
TypeDescription
ByteString

The bytes for use.

getX()

public String getX()

Used for ECDSA keys.

string x = 7;

Returns
TypeDescription
String

The x.

getXBytes()

public ByteString getXBytes()

Used for ECDSA keys.

string x = 7;

Returns
TypeDescription
ByteString

The bytes for x.

getY()

public String getY()

Used for ECDSA keys.

string y = 8;

Returns
TypeDescription
String

The y.

getYBytes()

public ByteString getYBytes()

Used for ECDSA keys.

string y = 8;

Returns
TypeDescription
ByteString

The bytes for y.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Jwk other)

public Jwk.Builder mergeFrom(Jwk other)
Parameter
NameDescription
otherJwk
Returns
TypeDescription
Jwk.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Jwk.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Jwk.Builder
Overrides Exceptions </
TypeDescription
IOException