APISonar


io.grpc.InternalChannelz.InternalChannelz.Security

> io > grpc > InternalChannelz > InternalChannelz > Security
io APIs grpc APIs InternalChannelz APIs InternalChannelz APIs Security APIs

Example 1
public void socketSecurityOther() throws Exception {
    // what is packed here is not important, just pick some proto message
    Message contents = GetChannelRequest.newBuilder().setChannelId(1).build();
    Any packed = Any.pack(contents);
    socket.security
        = new InternalChannelz.Security(
            new InternalChannelz.OtherSecurity("other_security", packed));
    assertEquals(
        Security.newBuilder().setOther(
            OtherSecurity.newBuilder().setName("other_security").setValue(packed))
        .build(),
        ChannelzProtoUtil.toSocket(socket).getSecurity());
  }