def grant_type
      case @token_type
      when TokenType::V1
        TokenRequest::GrantType::SAML1
      when TokenType::V2
        TokenRequest::GrantType::SAML2
      end
    end
def grant_type
      case @token_type
      when TokenType::V1
        TokenRequest::GrantType::SAML1
      when TokenType::V2
        TokenRequest::GrantType::SAML2
      end
    end
Constructs a WSTrustResponse.

 @param String token
   The content of the returned token.
 @param WSTrustResponse::TokenType token_type
   The type of the token contained within the WS-Trust response.

 Gets the OAuth grant type for the SAML token type of the response.

 @return TokenRequest::GrantType