예제 #1
0
        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);
        }
예제 #2
0
        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);
        }