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