Example #1
0
        /// <exception cref="System.IO.IOException"/>
        public static Token NewContainerToken(ContainerId cId, string host, int port, string
                                              user, Resource r, long expiryTime, int masterKeyId, byte[] password, long rmIdentifier
                                              )
        {
            ContainerTokenIdentifier identifier = new ContainerTokenIdentifier(cId, host + ":"
                                                                               + port, user, r, expiryTime, masterKeyId, rmIdentifier, Priority.NewInstance(0)
                                                                               , 0);

            return(NewContainerToken(BuilderUtils.NewNodeId(host, port), password, identifier
                                     ));
        }