David Schreibman created THRIFT-3606:
----------------------------------------

             Summary: TSaslClientTransport props typed too strongly
                 Key: THRIFT-3606
                 URL: https://issues.apache.org/jira/browse/THRIFT-3606
             Project: Thrift
          Issue Type: Bug
          Components: Java - Library
    Affects Versions: 0.9.3
            Reporter: David Schreibman
            Priority: Minor


The constructor in TSaslClientTransport.java with signature:

public TSaslClientTransport(
  String mechanism,
  String authorizationId, String protocol,
  String serverName,
  Map<String, String> props,
  CallbackHandler cbh,
  TTransport transport)

Is passing along the props Map to Sasl.createSaslClient(....). However, 
createSaslClient actually accepts props as Map<String, ?>. Having the props as 
Map<String, String> means that we cannot pass legitimate non-string property 
values. For example, you cannot pass in the JGSS 
javax.security.sasl.policy.credentials property which is an object of type 
GSSCredential.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to