43 references to SecurityUtils
dotnet-svcutil-lib (43)
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\Claim.cs (2)
120
return new Claim(ClaimTypes.Hash,
SecurityUtils
.CloneBuffer(hash), Rights.PossessProperty, ClaimComparer.Hash);
146
return new Claim(ClaimTypes.Thumbprint,
SecurityUtils
.CloneBuffer(thumbprint), Rights.PossessProperty, ClaimComparer.Thumbprint);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\DefaultClaimSet.cs (1)
104
return
SecurityUtils
.ClaimSetToString(this);
FrameworkFork\System.ServiceModel\System\IdentityModel\Claims\X509CertificateClaimSet.cs (7)
17
private DateTime _expirationTime =
SecurityUtils
.MinUtcDateTime;
85
if (_expirationTime ==
SecurityUtils
.MinUtcDateTime)
142
SecurityUtils
.DisposeIfNecessary(_identity);
147
SecurityUtils
.DisposeIfNecessary(_issuer as IDisposable);
154
SecurityUtils
.ResetCertificate(_elements[i].Certificate);
157
SecurityUtils
.ResetCertificate(_certificate);
345
return _disposed ? base.ToString() :
SecurityUtils
.ClaimSetToString(this);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\AuthorizationContext.cs (1)
21
return
SecurityUtils
.CreateDefaultAuthorizationContext(authorizationPolicies);
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\DefaultEvaluationContext.cs (1)
17
private DateTime _expirationTime =
SecurityUtils
.MaxUtcDateTime;
FrameworkFork\System.ServiceModel\System\IdentityModel\Policy\UnconditionalPolicy.cs (12)
30
: this(issuance,
SecurityUtils
.MaxUtcDateTime)
71
_primaryIdentity = from._disposable ?
SecurityUtils
.CloneIdentityIfNecessary(from._primaryIdentity) : from._primaryIdentity;
74
_issuance = from._disposable ?
SecurityUtils
.CloneClaimSetIfNecessary(from._issuance) : from._issuance;
78
_issuances = from._disposable ?
SecurityUtils
.CloneClaimSetsIfNecessary(from._issuances) : from._issuances;
147
if (identity != null && identity !=
SecurityUtils
.AnonymousIdentity)
154
_primaryIdentity = identity ??
SecurityUtils
.AnonymousIdentity;
196
SecurityUtils
.DisposeIfNecessary(_primaryIdentity as IDisposable);
197
SecurityUtils
.DisposeClaimSetIfNecessary(_issuance);
198
SecurityUtils
.DisposeClaimSetsIfNecessary(_issuances);
229
if (this.PrimaryIdentity != null && this.PrimaryIdentity !=
SecurityUtils
.AnonymousIdentity)
233
if (!evaluationContext.Properties.TryGetValue(
SecurityUtils
.Identities, out obj))
236
evaluationContext.Properties.Add(
SecurityUtils
.Identities, identities);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (4)
40
s_anonymousIdentity =
SecurityUtils
.CreateIdentity(string.Empty);
121
return CreateAuthorizationPolicies(claimSet,
SecurityUtils
.MaxUtcDateTime);
407
if (_policy.PrimaryIdentity != null && _policy.PrimaryIdentity !=
SecurityUtils
.AnonymousIdentity)
411
properties.Add(
SecurityUtils
.Identities, identities);
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509CertificateValidator.cs (1)
93
SecurityUtils
.GetCertificateId(certificate), GetChainStatusInformation(chain.ChainStatus))));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (1)
66
return
SecurityUtils
.CreateAuthorizationPolicies(x509ClaimSet, x509Token.ValidTo);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\BinaryKeyIdentifierClause.cs (3)
33
_identificationData =
SecurityUtils
.CloneBuffer(identificationData);
43
return
SecurityUtils
.CloneBuffer(_identificationData);
68
return
SecurityUtils
.MatchesBuffer(_identificationData, 0, data, offset);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\UserNameSecurityToken.cs (1)
55
get { return
SecurityUtils
.MaxUtcDateTime; }
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\X509SecurityToken.cs (4)
17
private DateTime _effectiveTime =
SecurityUtils
.MaxUtcDateTime;
18
private DateTime _expirationTime =
SecurityUtils
.MinUtcDateTime;
87
if (_effectiveTime ==
SecurityUtils
.MaxUtcDateTime)
98
if (_expirationTime ==
SecurityUtils
.MinUtcDateTime)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (2)
56
_securityKeys =
SecurityUtils
.CreateSymmetricSecurityKeys(_key);
92
return
SecurityUtils
.CloneBuffer(_key);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (2)
85
ReadOnlyCollection<IAuthorizationPolicy> authorizationPolicies = System.IdentityModel.
SecurityUtils
.CloneAuthorizationPoliciesIfNecessary(from._authorizationPolicies);
312
System.IdentityModel.
SecurityUtils
.DisposeAuthorizationPoliciesIfNecessary(_authorizationPolicies);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\WrappedKeySecurityToken.cs (1)
92
_securityKey = System.IdentityModel.
SecurityUtils
.CreateSymmetricSecurityKeys(keyToWrap);