private string GetTokenTypeUri(StrEntry str, SecurityKeyIdentifierClause keyIdentifierClause) { bool emitTokenType = this.EmitTokenType(str); if (emitTokenType) { string tokenTypeUri; if (str is LocalReferenceStrEntry) { tokenTypeUri = (str as LocalReferenceStrEntry).GetLocalTokenTypeUri(keyIdentifierClause); // only emit token type for SAML,Kerberos and Encrypted References switch (tokenTypeUri) { case SecurityXXX2005Strings.Saml20TokenType: case SecurityXXX2005Strings.SamlTokenType: case SecurityXXX2005Strings.EncryptedKeyTokenType: case SecurityJan2004Strings.KerberosTokenTypeGSS: break; default: tokenTypeUri = null; break; } } else { tokenTypeUri = str.GetTokenTypeUri(); } return(tokenTypeUri); } else { return(null); } }
private bool EmitTokenType(StrEntry str) { bool emitTokenType = false; // we emit tokentype always for SAML and Encrypted Key Tokens if ((str is SamlJan2004KeyIdentifierStrEntry) || (str is EncryptedKeyHashStrEntry) || (str is SamlDirectStrEntry)) { emitTokenType = true; } else if (this.EmitBspRequiredAttributes) { if ((str is KerberosHashStrEntry) || (str is LocalReferenceStrEntry)) { emitTokenType = true; } } return(emitTokenType); }
private string GetTokenTypeUri(StrEntry str, SecurityKeyIdentifierClause keyIdentifierClause) { bool emitTokenType = this.EmitTokenType(str); if (emitTokenType) { string tokenTypeUri; if (str is LocalReferenceStrEntry) { tokenTypeUri = (str as LocalReferenceStrEntry).GetLocalTokenTypeUri(keyIdentifierClause); // only emit token type for SAML,Kerberos and Encrypted References switch (tokenTypeUri) { case SecurityXXX2005Strings.Saml20TokenType: case SecurityXXX2005Strings.SamlTokenType: case SecurityXXX2005Strings.EncryptedKeyTokenType: case SecurityJan2004Strings.KerberosTokenTypeGSS: break; default: tokenTypeUri = null; break; } } else { tokenTypeUri = str.GetTokenTypeUri(); } return tokenTypeUri; } else { return null; } }
private bool EmitTokenType(StrEntry str) { bool emitTokenType = false; // we emit tokentype always for SAML and Encrypted Key Tokens if ((str is SamlJan2004KeyIdentifierStrEntry) || (str is EncryptedKeyHashStrEntry) || (str is SamlDirectStrEntry)) { emitTokenType = true; } else if (this.EmitBspRequiredAttributes) { if ((str is KerberosHashStrEntry) || (str is LocalReferenceStrEntry)) { emitTokenType = true; } } return emitTokenType; }
private bool EmitTokenType(StrEntry str) { // On .NET Framework, only returns true for scenarios unsupported on Core, e.g. SAML return(false); }