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
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.a2aproject.sdk.spec.AuthenticationInfo
    Converts proto AuthenticationInfo to domain AuthenticationInfo.
    toProto(org.a2aproject.sdk.spec.AuthenticationInfo domain)
    Converts domain AuthenticationInfo to proto AuthenticationInfo.
  • Field Details

  • Method Details

    • toProto

      AuthenticationInfo toProto(org.a2aproject.sdk.spec.AuthenticationInfo domain)
      Converts domain AuthenticationInfo to proto AuthenticationInfo. Takes the first scheme from the schemes list.
    • fromProto

      org.a2aproject.sdk.spec.AuthenticationInfo fromProto(AuthenticationInfo proto)
      Converts proto AuthenticationInfo to domain AuthenticationInfo. Wraps the single scheme in a list.