Package org.a2aproject.sdk.grpc.mapper
Interface AuthenticationInfoMapper
- All Known Implementing Classes:
AuthenticationInfoMapperImpl
public interface AuthenticationInfoMapper
Mapper between
AuthenticationInfo and AuthenticationInfo.
Maps between domain AuthenticationInfo (schemes as List of String) and proto AuthenticationInfo (scheme as String). The proto scheme field is mapped to/from the first element of the domain schemes list.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfromProto(AuthenticationInfo proto) Converts proto AuthenticationInfo to domain AuthenticationInfo.toProto(AuthenticationInfo domain) Converts domain AuthenticationInfo to proto AuthenticationInfo.
-
Field Details
-
INSTANCE
-
-
Method Details
-
toProto
Converts domain AuthenticationInfo to proto AuthenticationInfo. Takes the first scheme from the schemes list. -
fromProto
Converts proto AuthenticationInfo to domain AuthenticationInfo. Wraps the single scheme in a list.
-