<commit_before>﻿/*
 * Copyright (c) <NAME>, <NAME>.  All rights reserved.
 * see license.txt
 */

using System;
using System.ComponentModel.DataAnnotations;
using System.Security.Cryptography.X509Certificates;

namespace Thinktecture.IdentityServer.Models
{
    public class RelyingParty
    {
        [Required]
        [Editable(false)]
        //[Display(Name = "ID", Description = "")]
        public string Id { get; set; }
        
        [Display(Name = "Enabled", Description = "Enabled or disable this RP.")]
        public bool Enabled { get; set; }
        
        [Required]
        [Display(Name = "Display Name", Description = "Descriptive name (shows up in trace logs).")]
        public string Name { get; set; }
        
        [Required]
        [Display(Name = "Realm Name", Description = "Realm identifier.")]
        [AbsoluteUri]
        public Uri Realm { get; set; }

        [Required]
        [Display(Name = "Token life time (in minutes)", Description = "Can be used to override the default token lifetime (a value of 0 uses the global default).")]
        public int TokenLifeTime { get; set; }

        [Display(Name = "Reply To", Description = "URL to return to once a token is issued.")]
        [Url]
        public Uri ReplyTo { get; set; }

        [Display(Order=10002, Name = "Encrypting Certificate", Description = "Optional X.509 certificate to encrypt outgoing tokens.")]
        public X509Certificate2 EncryptingCertificate { get; set; }

        [Display(Order = 10001, Name = "Symmetric Signing Key", Description = "Base64 encoded key used for symmetric signing of tokens.")]
        public byte[] SymmetricSigningKey { get; set; }

        [Display(Name = "Extra Data 1", Description = "Extra data you can associate with the RP. (1)")]
        public string ExtraData1 { get; set; }
        [Display(Name = "Extra Data 2", Description = "Extra data you can associate with the RP. (2)")]
        public string ExtraData2 { get; set; }
        [Display(Name = "Extra Data 3", Description = "Extra data you can associate with the RP. (3)")]
        public string ExtraData3 { get; set; }
    }
}<commit_msg>Updated some naming in RP model<commit_after>﻿/*
 * Copyright (c) <NAME>, <NAME>.  All rights reserved.
 * see license.txt
 */

using System;
using System.ComponentModel.DataAnnotations;
using System.Security.Cryptography.X509Certificates;

namespace Thinktecture.IdentityServer.Models
{
    public class RelyingParty
    {
        [Required]
        [Editable(false)]
        public string Id { get; set; }
        
        [Display(Name = "Enabled", Description = "Enabled or disable this RP.")]
        public bool Enabled { get; set; }
        
        [Required]
        [Display(Name = "Display Name", Description = "Descriptive name (shows up in trace logs).")]
        public string Name { get; set; }
        
        [Required]
        [Display(Name = "Realm/Scope Name", Description = "Realm/Scope identifier URI.")]
        [AbsoluteUri]
        public Uri Realm { get; set; }

        [Required]
        [Display(Name = "Token life time (in minutes)", Description = "Can be used to override the default token lifetime (a value of 0 uses the global default).")]
        public int TokenLifeTime { get; set; }

        [Display(Name = "Redirect URL", Description = "URL to return to once a token is issued.")]
        [Url]
        public Uri ReplyTo { get; set; }

        [Display(Order=10002, Name = "Encrypting Certificate", Description = "Optional X.509 certificate to encrypt outgoing tokens.")]
        public X509Certificate2 EncryptingCertificate { get; set; }

        [Display(Order = 10001, Name = "Symmetric Signing Key", Description = "Base64 encoded key used for symmetric signing of tokens.")]
        public byte[] SymmetricSigningKey { get; set; }

        [Display(Name = "Extra Data 1", Description = "Extra data you can associate with the RP. (1)")]
        public string ExtraData1 { get; set; }
        [Display(Name = "Extra Data 2", Description = "Extra data you can associate with the RP. (2)")]
        public string ExtraData2 { get; set; }
        [Display(Name = "Extra Data 3", Description = "Extra data you can associate with the RP. (3)")]
        public string ExtraData3 { get; set; }
    }
}
{'fraction_non_alphanumeric': 0.11214735369550012, 'fraction_numerical': 0.014921893215201678, 'mean_word_length': 2.740191804707934, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3403794', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1148, 'n_words': 439}