public DerivedKeySecurityToken CreateToken(SecurityToken tokenToDerive, int maxKeyLength) { DerivedKeySecurityToken result = new DerivedKeySecurityToken(this.generation, this.offset, this.length, this.label, this.nonce, tokenToDerive, this.tokenToDeriveIdentifier, this.derivationAlgorithm, this.Id); result.InitializeDerivedKey(maxKeyLength); return(result); }
public DerivedKeySecurityToken CreateToken(SecurityToken tokenToDerive, int maxKeyLength) { DerivedKeySecurityToken result = new DerivedKeySecurityToken(_generation, _offset, _length, _label, _nonce, tokenToDerive, TokenToDeriveIdentifier, _derivationAlgorithm, Id); result.InitializeDerivedKey(maxKeyLength); return(result); }