3 writes to TokenType
System.IdentityModel (3)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (2)
93rst.TokenType = reader.ReadElementContentAsString(); 1564rstr.TokenType = reader.ReadElementContentAsString();
System\IdentityModel\Tokens\SecurityTokenDescriptor.cs (1)
80response.TokenType = tokenType;
20 references to TokenType
System.IdentityModel (20)
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (8)
94if (!UriUtil.CanCreateValidUri(rst.TokenType, UriKind.Absolute)) 96throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.NamespaceURI, rst.TokenType))); 798if (!string.IsNullOrEmpty(rst.TokenType)) 800requestSerializer.WriteXmlElement(writer, trustConstants.Elements.TokenType, rst.TokenType, rst, context); 1565if (!UriUtil.CanCreateValidUri(rstr.TokenType, UriKind.Absolute)) 1567throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new WSTrustSerializationException(SR.GetString(SR.ID3135, trustConstants.Elements.TokenType, trustConstants.NamespaceURI, rstr.TokenType))); 1795if (!string.IsNullOrEmpty(rstr.TokenType)) 1797responseSerializer.WriteXmlElement(writer, trustConstants.Elements.TokenType, rstr.TokenType, rstr, context);
System\IdentityModel\SecurityTokenService.cs (12)
727SecurityTokenHandler securityTokenHandler = GetSecurityTokenHandler(request.TokenType); 730throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID4010, request.TokenType))); 749if (!string.IsNullOrEmpty(request.TokenType)) 751_tokenDescriptor.TokenType = request.TokenType; 758throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4264, request.TokenType))); 850SecurityTokenHandler securityTokenHandler = GetSecurityTokenHandler(request == null ? null : request.TokenType); 853throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotSupportedException(SR.GetString(SR.ID4010, request == null ? String.Empty : request.TokenType))); 945if (!string.IsNullOrEmpty(request.TokenType)) 947_tokenDescriptor.TokenType = request.TokenType; 954throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.ID4264, request.TokenType))); 1083if (GetSecurityTokenHandler(request.TokenType) == null) 1085throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new UnsupportedTokenTypeBadRequestException(request.TokenType));