Package io.deephaven.proto.auth
Class AuthenticationResult
java.lang.Object
io.deephaven.shadow.core.com.google.protobuf.AbstractMessageLite
io.deephaven.shadow.core.com.google.protobuf.AbstractMessage
io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
io.deephaven.proto.auth.AuthenticationResult
- All Implemented Interfaces:
AuthenticationResultOrBuilder,io.deephaven.shadow.core.com.google.protobuf.Message,io.deephaven.shadow.core.com.google.protobuf.MessageLite,io.deephaven.shadow.core.com.google.protobuf.MessageLiteOrBuilder,io.deephaven.shadow.core.com.google.protobuf.MessageOrBuilder,Serializable
public final class AuthenticationResult
extends io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
implements AuthenticationResultOrBuilder
Servers respond to Authenticate* requests with an opaque cookie for the (client_id, user, effectiveUser) combination granted in the request. clients remember and use the same cookie in subsequent RPCs to the server that intend to use those credentials. This cookie should be refreshed prior to the deadline, which is represented as milliseconds since epoch. Clients are encouraged to refresh considerably in advance of the deadline, as to be able to continue operating under network delays. The expected pattern is for clients to refresh half-way throught their available period from the last refresh to the deadline.Protobuf type
io.deephaven.proto.auth.AuthenticationResult- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classServers respond to Authenticate* requests with an opaque cookie for the (client_id, user, effectiveUser) combination granted in the request.Nested classes/interfaces inherited from class io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.BuilderParent, io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class io.deephaven.shadow.core.com.google.protobuf.AbstractMessageLite
io.deephaven.shadow.core.com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class io.deephaven.shadow.core.com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class io.deephaven.shadow.core.com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleantrue if authentication was successful.io.deephaven.shadow.core.com.google.protobuf.ByteStringthe cookie that the client should remember and refresh before its deadline to remain authenticated.longthe absolute time in milliseconds from the epoch when the cookie will expire.static AuthenticationResultstatic final io.deephaven.shadow.core.com.google.protobuf.Descriptors.Descriptorio.deephaven.shadow.core.com.google.protobuf.Parser<AuthenticationResult>intthe user context actually authenticated; if there was one in the request should match it.the user context actually authenticated; if there was one in the request should match it.inthashCode()booleanthe user context actually authenticated; if there was one in the request should match it.protected io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic AuthenticationResult.Builderstatic AuthenticationResult.BuildernewBuilder(AuthenticationResult prototype) protected AuthenticationResult.BuildernewBuilderForType(io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AuthenticationResultparseDelimitedFrom(InputStream input) static AuthenticationResultparseDelimitedFrom(InputStream input, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuthenticationResultparseFrom(byte[] data) static AuthenticationResultparseFrom(byte[] data, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuthenticationResultparseFrom(io.deephaven.shadow.core.com.google.protobuf.ByteString data) static AuthenticationResultparseFrom(io.deephaven.shadow.core.com.google.protobuf.ByteString data, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuthenticationResultparseFrom(io.deephaven.shadow.core.com.google.protobuf.CodedInputStream input) static AuthenticationResultparseFrom(io.deephaven.shadow.core.com.google.protobuf.CodedInputStream input, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuthenticationResultparseFrom(InputStream input) static AuthenticationResultparseFrom(InputStream input, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AuthenticationResultparseFrom(ByteBuffer data) static AuthenticationResultparseFrom(ByteBuffer data, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) static io.deephaven.shadow.core.com.google.protobuf.Parser<AuthenticationResult>parser()voidwriteTo(io.deephaven.shadow.core.com.google.protobuf.CodedOutputStream output) Methods inherited from class io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class io.deephaven.shadow.core.com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class io.deephaven.shadow.core.com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.deephaven.shadow.core.com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface io.deephaven.shadow.core.com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
AUTHENTICATED_FIELD_NUMBER
public static final int AUTHENTICATED_FIELD_NUMBER- See Also:
-
COOKIE_FIELD_NUMBER
public static final int COOKIE_FIELD_NUMBER- See Also:
-
COOKIE_DEADLINE_TIME_MILLIS_FIELD_NUMBER
public static final int COOKIE_DEADLINE_TIME_MILLIS_FIELD_NUMBER- See Also:
-
USERCONTEXT_FIELD_NUMBER
public static final int USERCONTEXT_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
protected Object newInstance(io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) - Overrides:
newInstancein classio.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final io.deephaven.shadow.core.com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classio.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
-
getAuthenticated
public boolean getAuthenticated()true if authentication was successful.
bool authenticated = 1;- Specified by:
getAuthenticatedin interfaceAuthenticationResultOrBuilder- Returns:
- The authenticated.
-
getCookie
public io.deephaven.shadow.core.com.google.protobuf.ByteString getCookie()the cookie that the client should remember and refresh before its deadline to remain authenticated.
bytes cookie = 2;- Specified by:
getCookiein interfaceAuthenticationResultOrBuilder- Returns:
- The cookie.
-
getCookieDeadlineTimeMillis
public long getCookieDeadlineTimeMillis()the absolute time in milliseconds from the epoch when the cookie will expire.
sfixed64 cookie_deadline_time_millis = 3;- Specified by:
getCookieDeadlineTimeMillisin interfaceAuthenticationResultOrBuilder- Returns:
- The cookieDeadlineTimeMillis.
-
hasUserContext
public boolean hasUserContext()the user context actually authenticated; if there was one in the request should match it.
.io.deephaven.proto.auth.UserContext userContext = 4;- Specified by:
hasUserContextin interfaceAuthenticationResultOrBuilder- Returns:
- Whether the userContext field is set.
-
getUserContext
the user context actually authenticated; if there was one in the request should match it.
.io.deephaven.proto.auth.UserContext userContext = 4;- Specified by:
getUserContextin interfaceAuthenticationResultOrBuilder- Returns:
- The userContext.
-
getUserContextOrBuilder
the user context actually authenticated; if there was one in the request should match it.
.io.deephaven.proto.auth.UserContext userContext = 4;- Specified by:
getUserContextOrBuilderin interfaceAuthenticationResultOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceio.deephaven.shadow.core.com.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classio.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(io.deephaven.shadow.core.com.google.protobuf.CodedOutputStream output) throws IOException - Specified by:
writeToin interfaceio.deephaven.shadow.core.com.google.protobuf.MessageLite- Overrides:
writeToin classio.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceio.deephaven.shadow.core.com.google.protobuf.MessageLite- Overrides:
getSerializedSizein classio.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceio.deephaven.shadow.core.com.google.protobuf.Message- Overrides:
equalsin classio.deephaven.shadow.core.com.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceio.deephaven.shadow.core.com.google.protobuf.Message- Overrides:
hashCodein classio.deephaven.shadow.core.com.google.protobuf.AbstractMessage
-
parseFrom
public static AuthenticationResult parseFrom(ByteBuffer data) throws io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException - Throws:
io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationResult parseFrom(ByteBuffer data, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException - Throws:
io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationResult parseFrom(io.deephaven.shadow.core.com.google.protobuf.ByteString data) throws io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException - Throws:
io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationResult parseFrom(io.deephaven.shadow.core.com.google.protobuf.ByteString data, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException - Throws:
io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationResult parseFrom(byte[] data) throws io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException - Throws:
io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AuthenticationResult parseFrom(byte[] data, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException - Throws:
io.deephaven.shadow.core.com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AuthenticationResult parseFrom(InputStream input, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AuthenticationResult parseDelimitedFrom(InputStream input, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AuthenticationResult parseFrom(io.deephaven.shadow.core.com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AuthenticationResult parseFrom(io.deephaven.shadow.core.com.google.protobuf.CodedInputStream input, io.deephaven.shadow.core.com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfaceio.deephaven.shadow.core.com.google.protobuf.Message- Specified by:
newBuilderForTypein interfaceio.deephaven.shadow.core.com.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfaceio.deephaven.shadow.core.com.google.protobuf.Message- Specified by:
toBuilderin interfaceio.deephaven.shadow.core.com.google.protobuf.MessageLite
-
newBuilderForType
protected AuthenticationResult.Builder newBuilderForType(io.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classio.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceio.deephaven.shadow.core.com.google.protobuf.Message- Specified by:
getParserForTypein interfaceio.deephaven.shadow.core.com.google.protobuf.MessageLite- Overrides:
getParserForTypein classio.deephaven.shadow.core.com.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceio.deephaven.shadow.core.com.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceio.deephaven.shadow.core.com.google.protobuf.MessageOrBuilder
-